다음 환자 테이블에서 알레르기가 없는 환자의 이름과 성을 표시하는 SQL 구문을 작성하시오.
patient_id | first_name | last_name | gender | birth_date | city | province_id | allergies | height | weight |
---|
1 | Donald | Waterfield | M | 1963-02-12 | Barrie | ON | NULL | 156 | 65 |
2 | Mickey | Baasha | M | 1981-05-28 | Dundas | ON | Sulfa | 185 | 76 |
3 | Jiji | Sharma | M | 1957-09-05 | Hamilton | ON | Penicillin | 194 | 106 |
4 | Blair | Diaz | M | 1967-01-07 | Hamilton | ON | NULL | 191 | 104 |
5 | Charles | Wolfe | M | 2017-11-19 | Orillia | ON | Penicillin | 47 | 10 |
6 | Sue | Falcon | F | 2017-09-30 | Ajax | ON | Penicillin | 43 | 5 |
SELECT
first_name,
last_name
FROM patients
WHERE allergies IS NULL;
first_name | last_name |
---|
Donald | Waterfield |
Blair | Diaz |