【正文】
) 一次完成求和、計(jì)數(shù)、計(jì)算平均值的查詢。(39) 查詢數(shù)據(jù)庫課程的成績(jī)大于70分的、所有課程平均分最高的學(xué)生信息。(41) 查詢每個(gè)學(xué)生的所有成績(jī)的最高成績(jī)、最低成績(jī)、平均成績(jī)和所考課程的門數(shù)。(43) 設(shè)計(jì)2個(gè)使用COMPUTE(44) 設(shè)計(jì)1個(gè)使用COMPUTE的查詢。BY的查詢。(2)輸入自己編好的程序。(4)運(yùn)行程序,并分析運(yùn)行結(jié)果是否合理和正確。(5)輸出程序清單和運(yùn)行結(jié)果。select distinct 學(xué)號(hào) from 選課select 學(xué)號(hào) from 選課(2) 查詢某個(gè)表中的所有記錄查詢教師表中的所有記錄(3) 使用單個(gè)條件的簡(jiǎn)單查詢查詢成績(jī)大于50的學(xué)生的學(xué)號(hào)select 學(xué)號(hào) from 選課where 成績(jī)50(4) 使用多個(gè)條件(AND關(guān)系)的查詢select 工資from 教師where 工資200 and 工資500(5) 使用多個(gè)條件(OR關(guān)系)的查詢select 工資from 教師where 工資200 or 工資500(6) 使用多個(gè)條件(混合AND和OR關(guān)系)的查詢select * from 學(xué)生where (院系=39。 and 生源=39。) or (院系=39。 and 生源=39。)(7)使用帶NOT運(yùn)算的查詢select * from 學(xué)生where not (生源=39。)(8)使用BETWEEN???AND???的查詢select * from 選課where 成績(jī) between 86 and 93(9)使用NOT???BETWEEN???AND???的查詢select * from 選課where 成績(jī) not between 76 and 93(10)使用LIKE運(yùn)算符的字符串匹配查詢。專業(yè)__39。select * from 院系where 辦公地點(diǎn) like 39。(12)查詢空值和非空值的select * from 教師where 工資 is nullselect * from 教師where 工資 is not null(13)結(jié)果要求排序的查詢select * from 選課 升序order by 成績(jī)select * from 選課 降序order by 成績(jī) desc(14)查詢結(jié)果按多列排序,并分別要求升序和降序的查詢?;茨?9。select * from 學(xué)生 cross join 選課(18)帶其他查詢條件的兩個(gè)關(guān)系的連接查詢select ,院系,姓名,性別,生源,課程編號(hào),成績(jī)from 學(xué)生 join 選課 on = (19)多個(gè)關(guān)系(三個(gè)以上)的連接查詢select * from 學(xué)生,課程,選課where = and = (20)兩個(gè)關(guān)系的廣義笛卡爾積運(yùn)算結(jié)