【正文】
?!浚?)查找最年長的水手的年齡和名字:SnameAge馬克思41:select sname,agefrom sailorswhere age=all(select age from sailors)3執(zhí)行結(jié)果,無問題(9)在18歲以上水手中,對于每個rating級別中最少有兩個水手以上的組中最年輕水手的年齡:RatingAge220323425527631737:select rating,agefrom sailors xwhere age=(select min(age) from sailors y where age20 and = group by rating having count(sid)1)3執(zhí)行結(jié)果,無問題。or color=39。白39。c. 記錄完成查詢的查詢結(jié)果。 熟悉通過SQL對數(shù)據(jù)庫進(jìn)行操作。 實驗?zāi)康?完成作業(yè)的上機練習(xí)。 實驗內(nèi)容和要求1)實驗內(nèi)容:創(chuàng)建數(shù)據(jù)庫boat,包括Sailors,Boats,Reserves三個表,表結(jié)構(gòu)如下:Sailors(sid: integer, sname: string, rating: integer, age: real)船員(船員編號,姓名,級別,年齡)Boats(bid: integer, bname: string, color: string)船(船編號,名稱,顏色)Reserv