【正文】
70分的、所有課程平均分最高的學(xué)生信息。select top(1) * from 學(xué)生where 學(xué)號in ( select 學(xué)號from 選課join 課程 on = where 成績70 and 課程名稱=39。數(shù)據(jù)庫39。)(40)查詢每個學(xué)生的平均成績。select 學(xué)號,avg(成績) as 平均成績from 選課group by 學(xué)號(41)查詢每個學(xué)生的所有成績的最高成績、最低成績、平均成績和所考課程的門數(shù)。select 學(xué)號,count(*)39。所選課程數(shù)39。,max(成績)39。最高成績39。,avg(成績)39。平均成績39。,min(成績)39。最低成績39。 from 選課group by 學(xué)號(42)查詢至少有1門必修課程考試成績的每個學(xué)生的平均成績。select avg(成績)from 選課where 課程編號 in(select 課程編號 from 課程 where 課程性質(zhì) like 39。%基礎(chǔ)39。)group by 學(xué)號(43)設(shè)計1個使用COMPUTE???BY和COMPUTE的查詢。select * from 選課order by 學(xué)號pute avg(成績),sum(成績) by 學(xué)號(44)設(shè)計1個使用COMPUTE的查詢。select * from 教師pute sum(工資) (45)設(shè)計個使用group???BY的查詢。select 教師編號,avg(工資)from 教師group by 教師編號四、 分析與討論實驗過程中出現(xiàn)了很多的錯誤,但經(jīng)過自己的不懈努力都解決的了,也正是通過這次的實驗學(xué)到了很多。 五、教師評語1.按時完成實驗;2.實驗內(nèi)容和實驗過程記錄完整;3.回答問題完整、正確;4.有關(guān)于實驗的比較深刻的心得或討論;5.實驗報告的撰寫認(rèn)真、報告格式符合要求。簽名: 日期: 年 月 日 成績