【正文】
ors:,無問題(2)查詢所有姓李的船員的信息:sidsnameratingage2李世民2204李剛42513李剛527:select *from Sailorswhere sname like 39。intersectselect sidfrom Sailorswhere = and = and color=39。 And sname in(select snamefrom Sailors,Reserves,Boatswhere = and = and color=39。綠39。綠39。:。group by 3執(zhí)行結果。(五)未解決的問題?2.另:由于數(shù)據(jù)輸入的原因,為使結果更據(jù)代表性,某些題目可能做了修改,但不改變題目考察意圖。(四)解決的問題,問題為:,如題(7)。(13)建立年齡超過25歲的船員的視圖:create view is_sailorsasselect sid,sname,rating,agefrom sailorswhere age25(14)對(13)建立的視圖,舉一操作的例子(查詢、刪除、修改均可):select *from is_sailorswhere rating5:(三)出現(xiàn)的問題1.數(shù)據(jù)寫入的時候沒有注意導致某些問題無法解決。(10)查找每條紅色船只被租用的次數(shù):bidcount1281:select ,count(sid)