Skip to content

SQL Practice 10

1. 문제 [[object Object]]

키가 160 이상이고 몸무게가 70 이상인 환자의 이름, 성, 생년월일을 찾는 쿼리를 작성하세요

patient_idfirst_namelast_namegenderbirth_datecityprovince_idallergiesheightweight
1DonaldWaterfieldM1963-02-12BarrieONNULL15665
2MickeyBaashaM1981-05-28DundasONSulfa18576
3JijiSharmaM1957-09-05HamiltonONPenicillin194106
4BlairDiazM1967-01-07HamiltonONNULL191104
5CharlesWolfeM2017-11-19OrilliaONPenicillin4710
6SueFalconF2017-09-30AjaxONPenicillin435

2. 정답

SELECT first_name, last_name, birth_date 
FROM patients 
where height > 160 and weight > 70;

3. 결과

first_namelast_namebirth_date
MickeyBaasha1981-05-28
JijiSharma1957-09-05
BlairDiaz1967-01-07