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

正文內(nèi)容

甘全中數(shù)據(jù)庫(kù)實(shí)驗(yàn)-文庫(kù)吧資料

2025-04-23 06:56本頁(yè)面
  

【正文】 好完整的物理模型后,可以用工具(數(shù)據(jù)庫(kù))生成SQL代碼: 物資管理數(shù)據(jù)庫(kù)的SQL代碼如下:/*==============================================================*//* DBMS name: Microsoft SQL Server 2008 *//* Created on: 2016/11/5 14:19:34 *//*==============================================================*/if exists (select 1 from sysobjects where id = object_id(39。利用一種數(shù)據(jù)庫(kù)設(shè)計(jì)工具自動(dòng)生成數(shù)據(jù)庫(kù)模式SQL語(yǔ)句(本實(shí)驗(yàn)使用PowerDesign工具),能夠在數(shù)據(jù)庫(kù)管理系統(tǒng)中執(zhí)行相應(yīng)的SQL語(yǔ)句,創(chuàng)建所設(shè)計(jì)的數(shù)據(jù)庫(kù)。3. 靈活運(yùn)用索引、視圖、存儲(chǔ)過(guò)程、觸發(fā)器等。五、實(shí)驗(yàn)學(xué)時(shí):8學(xué)時(shí)六、實(shí)驗(yàn)重點(diǎn)及難點(diǎn)1. 整個(gè)數(shù)據(jù)庫(kù)結(jié)構(gòu)的設(shè)計(jì)。 對(duì)數(shù)據(jù)進(jìn)行插入、修改、刪除、查詢(xún)。 建立符合BCNF范式的數(shù)據(jù)庫(kù)表。二、實(shí)驗(yàn)任務(wù)設(shè)計(jì)一個(gè)簡(jiǎn)單的設(shè)備管理數(shù)據(jù)庫(kù)系統(tǒng)(不限),參考課本218頁(yè)。 運(yùn)行結(jié)果為:實(shí)驗(yàn)五 數(shù)據(jù)庫(kù)應(yīng)用程序的設(shè)計(jì)一、實(shí)驗(yàn)?zāi)康募耙?綜合運(yùn)用數(shù)據(jù)庫(kù)系統(tǒng)理論知識(shí)構(gòu)建數(shù)據(jù)庫(kù)。CS39。 except select * from Student where Sage=19。 運(yùn)行結(jié)果為: 例18 查詢(xún)計(jì)算機(jī)系的學(xué)生與年齡不大于19歲的學(xué)生的差集 命令為:select * from Student where Sdept =39。239。139。1939。CS39。)。) union select * from Student where Sno in (select Sno from SC where Cno =39。 運(yùn)行結(jié)果為: 例15查詢(xún)選修了課程1或者選修了課程2的學(xué)生 命令為:select * from Student where Sno in (select Sno from SC where Cno =39。 union select * from Student where Sage =39。 運(yùn)行結(jié)果為:例14 查詢(xún)計(jì)算機(jī)系的學(xué)生及年齡不大于19歲的學(xué)生 命令為: select * from Student where Sdept =39。20151512239。 命令為:select Sname ,Sdept from Student where not exists (select * from Course where not exists (select * from SC where Sno=Student .Sno and Cno = ))。)。 或:select Sname ,Sdept from Student where not exists (select * from SC where Sno = and Cno =39。139。 運(yùn)行結(jié)果為:例11查詢(xún)沒(méi)有選修了編號(hào)為“1”課程的學(xué)生姓名(Sname)。139。)。 命令為: select Sname ,Sdept from Student where Sno in (select Sno from SC where Cno =39。CS39。CS39。CS39。CS39。 運(yùn)行結(jié)果為: 例7 找出每個(gè)學(xué)生超過(guò)他自己選修課程的平均成績(jī)的課程號(hào)命令為:select * from SC x where Grade = (select avg(Grade) from SC y where = )。 命令為:select Student .Sno ,Sname from Student ,SC,Course where = and = and =39。)。 命令為:select Sno,Sname,Sdept from Student where Sdept in ( select Sdept from Student where Sname =39。 運(yùn)行結(jié)果為:例4 查詢(xún)每個(gè)學(xué)生的學(xué)號(hào),姓名,選修的課程名及成績(jī) 命令為:select Student .Sno ,Sname ,Cname,Grade from Student ,SC ,Course where = and = 。 運(yùn)行結(jié)果為: 例3查詢(xún)每一門(mén)課的間接先修課(即先修課的先修課)。239。 命令為:select Student.* ,SC .* from Student ,SC where =SC .Sno 。2039。計(jì)算機(jī)39。 運(yùn)行結(jié)果為:9.查詢(xún)計(jì)算機(jī)科學(xué)系的學(xué)生或年齡不大于20歲的學(xué)生信息。運(yùn)行結(jié)果為:8.查詢(xún)選修了所有課程的學(xué)生姓名(Sname)和所在系。C0139。)。 命令為:select Sname ,Sdept from Students where Sno in(select Sno from Reports where Cno=39。自動(dòng)化39。自動(dòng)化39。運(yùn)行結(jié)果為:6.查詢(xún)非自動(dòng)化系的不超過(guò)自動(dòng)化系所有學(xué)生的年齡的學(xué)生姓名(Sname)和年齡(Sage)。S0439。 ) ) 運(yùn)行結(jié)果為:5.查詢(xún)與“S04”號(hào)學(xué)生在同一個(gè)系學(xué)習(xí)的學(xué)生學(xué)號(hào)(Sno)、姓名(Sname)和系名(Sdept)。 命令為:select Sno ,Sname from Students where Sno in ( select Sno from Reports where Cno in ( select Cno from Courses where Cname =39。)。 命令為:select Sno ,Sname,Sdept from Students where Sdept in (select Sdept from Students where Sname =39。 命令為:select , from Courses first,Courses second where first .Pre_Cno =second .Cno 。 命令為:select Students.*,Reports .* from Students ,Reports where =Reports .Sno 。3.多重嵌套的使用。五、實(shí)驗(yàn)學(xué)時(shí):4學(xué)時(shí)六、實(shí)驗(yàn)重點(diǎn)及難點(diǎn)1.明白兩個(gè)表之間的聯(lián)系是通過(guò)公共屬性實(shí)現(xiàn)的。四、注意事項(xiàng)1.注意TSQL各種運(yùn)算符、控制語(yǔ)句的功能及使用方法。2.函數(shù)除了系統(tǒng)函數(shù)以外也可以自定義函數(shù)。2.掌握連接、嵌套和集合查詢(xún)的各種使用方法。2.學(xué)習(xí)各種連接、嵌套和集合查詢(xún)方法。 from Student 。 運(yùn)行結(jié)果為:案例26:查詢(xún)選修了課程的學(xué)生人數(shù) 命令為:select count (distinct Sno) 39。學(xué)生總?cè)藬?shù) 39。其命令為: 命令為:select * from Student order by Sdept ,Sage desc。and Sage 20。 運(yùn)行結(jié)果為:案例23:查詢(xún)計(jì)算機(jī)系年齡在20歲以下的學(xué)生姓名 命令為:select Sname from Student where Sdept =39。其命令為: 命令為:select Sno ,Cno from SC where Grade is null。 運(yùn)行結(jié)果為:案例21:某些學(xué)生選修課程后沒(méi)有參加考試,所以有選課記錄,但沒(méi)有考試成績(jī)。 escape 39。 運(yùn)行結(jié)果為: 案例20:查詢(xún)以“DB_”開(kāi)頭,且倒數(shù)第三個(gè)字符為設(shè)的課程詳細(xì)情況 命令為:select Cno ,Ccredit from Course where Cname like 39。 escape 39。 運(yùn)行結(jié)果為: 案例19:查詢(xún)DB_設(shè)計(jì)課程的課程號(hào)和學(xué)分 命令為:select Cno ,Ccredit from Course where Cname like 39。 運(yùn)行結(jié)果為: 案例18:查詢(xún)所有不姓劉的學(xué)生的姓名、學(xué)號(hào)和性別 命令為:select Sname ,Sno ,Ssex from Student where Sname not like 39。 運(yùn)行結(jié)果為: 案例17:查詢(xún)名字中第二個(gè)字為“陽(yáng)”的學(xué)生的姓名和學(xué)號(hào) 命令為:select Sname ,Sno from Student where Sname like 39。 運(yùn)行結(jié)果為: 案例16:查詢(xún)姓“歐陽(yáng)”且全名為三個(gè)漢字的學(xué)生的姓名 命令為:select Sname from Student where Sname like 39。 運(yùn)行結(jié)果為: 案例15:查詢(xún)所有姓劉的學(xué)生的姓名、學(xué)號(hào)和性別 命令為:select Sname ,Sno,Ssex from Student where Sname like 39。 運(yùn)行結(jié)果為: 案例14:查詢(xún)學(xué)號(hào)為201212121的學(xué)生的詳細(xì)情況 命令為:select * from Student where Sno=39。IS39。MA39。CS39。)。,39。,39。 運(yùn)行結(jié)果為: 案例12:查詢(xún)計(jì)算機(jī)系、數(shù)學(xué)系和信息系的學(xué)生的姓名和性別 命令為:select Sname ,Ssex from Student where Sdept in(39。 運(yùn)行結(jié)果為: 案例10:查詢(xún)年齡在20~23歲(包含20歲和23歲)之間的學(xué)生的姓名、系別和年齡 命令為:select Sname,Sdept ,Sage from Student where Sage between 20 and 23。 運(yùn)行結(jié)果為: 案例8:查詢(xún)所有年齡在20歲以下的學(xué)生姓名及其年齡 命令為:select Sname ,Sage from Student where Sage 20。 運(yùn)行結(jié)果為: 案例7:查詢(xún)計(jì)算機(jī)系全體學(xué)生的名單 命令為:select Sname from Student where S
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1