freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

數(shù)據(jù)庫系統(tǒng)課堂提問(編輯修改稿)

2025-05-26 06:45 本頁面
 

【文章內(nèi)容簡介】 omers b where = 44 查詢至少選修了學生 202215122選修的全部課程的學生號碼 select distinct sno from sc scx where not exists (select o from sc where sno=39。20221512239。 except select o from sc where = ) 45 查詢期末成績比該選修課程平均期末成績低的學生的學號、課程號和期末成績 SELECT studentno,final FROM score, (SELECT courseno, AVG(final) avg_final FROM score group by courseno ) b where = and 46 利用子查詢,在定單表 orders和顧客表 customers中查詢城市 city為Berlin的顧客的所有定單。 select * from orders where customerid in (select customerid from customers where city =39。Berlin39。) 47 設(shè)學生成績表 t_score,包含的屬性有fs_xh, fs_kc, fi_cj, fd_ksrq,寫出 SQL語句先列表學生的每門課成績,再統(tǒng)計每個學生的平均成績,按學號順序排列。 Select * from( Select * From t_score union Select fs_xh,’平均成績 ’ , avg(fi_cj),getdate() From t_score Group by fs_xh) b Order by fs_xh,fd_ksrq 48 設(shè) 1, 2, 3班同學的成績記錄表分別為 t_1, t_2, t_3,每個表中有學生學號 (FS_XH), 成績 (FI_CJ),每門課程成績?yōu)橐粭l記錄,則按總成績順序統(tǒng)計每個學生的總成績,并顯示總成績 300分的同學,寫出相應(yīng)的 SQL語句。 Select fs_xh,sum(fi_cj) fi_zcj From (Select fs_xh,fi_cj From t_1 Union Select fs_xh,fi_cj from t_2 Union Select fs_xh,fi_cj from t_3) c Group by fs_xh Having sum(fi_cj)300 Order by sum(fi_cj) 49 找出 score表中的非法學生數(shù)據(jù) select distinct studentno from score except select distinct studentno from student select distinct studentno from score where not exists ( select * from student where = ) 50 設(shè)教師檔案表有 20條記錄,教師基本工資記錄表有 15條記錄,兩表中僅有 8條記錄相對應(yīng),請問分別做內(nèi)聯(lián)接,教師檔案表的左外聯(lián)接,或右外聯(lián)接,全外聯(lián)接時分別應(yīng)有多少條記錄。 內(nèi)聯(lián)接: 8 左外聯(lián)接: 20 右外聯(lián)接: 15 全外聯(lián)接: 27 51 設(shè)有表 T T2包含有相同的字段(FI_ID,FS_NAME),不考慮主鍵可能導致的錯誤,寫出 SQL語句,請將T1的所有記錄輸入到 T2中,同時向T2輸入數(shù)據(jù) (8, ‘ 王平 ’ )。 insert into t2 select * from t1 insert into t2 values(8,39。王平 39。) 52 寫出 SQL語句,將 T1中的 FI_ID=1的記錄刪除掉,將 FI_ID=11的記錄號更改為5555, FS_NAME=‘李彬 ’ 。 delete from t1 where fi_id = 1 update t1 set fi_id = 5555, fs_name = 39。李彬 39。 where fi_id = 11 53 設(shè)有表 T T T3包含有相同的字段(FI_ID,FS_NAME),使用視圖從三個表的并集中按 ID編號選取后 5條記錄,請問應(yīng)該如操作? create view v_t123 as select * from t1 union select * from t2 union select * from t3 select top 5 * from v_t123 order by fi_id desc 54 查詢 score表中,既選修了 ’ c05103’又選修了 ’ c05108’的學生 。 select studentno from score where courseno = 39。c0510339。 intersect select studentno from score where courseno = 39。c0510839。 55 查詢 student表中,男性且姓許的同學 select * FROM student WHERE sex = 39。男 39。 intersect select * from student where sname like 39。許 %39。 56 把 score表中的 final增加 5%,如果對應(yīng)的point高于 750分。 update score set final = final * where studentno in ( select studentno from student where point 750) 57 查詢選修了全部課程的學生姓名 select studentno from score group by studentno having COUNT(distinct courseno) = ( select COUNT(distinct courseno) from score) 58 視圖的作用有哪些? 輯獨立性 59 計算機系統(tǒng)的安全性可分為哪三大類? 技術(shù)安全類 管理安全類 政策法律類 60 計算機系統(tǒng)的安全性的兩大標準分別是?
點擊復制文檔內(nèi)容
職業(yè)教育相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1