【正文】
《數(shù)據(jù)庫(kù)系統(tǒng)》實(shí)驗(yàn)報(bào)告三學(xué)號(hào)姓名實(shí)驗(yàn)時(shí)間20141126實(shí)驗(yàn)名稱數(shù)據(jù)查詢實(shí)驗(yàn)學(xué)時(shí)4準(zhǔn)備材料1. SQL Plus命令手冊(cè)2. Oracle數(shù)據(jù)字典擴(kuò)展實(shí)驗(yàn)1. 利用企業(yè)管理器的圖形界面構(gòu)造查詢語(yǔ)句,并察看查詢結(jié)果2. 利用企業(yè)管理器完成視圖、索引的創(chuàng)建與使用。3. 利用DBMS進(jìn)行對(duì)第三章習(xí)題所設(shè)計(jì)SQL語(yǔ)句的檢查 (此部分內(nèi)容不要求在實(shí)驗(yàn)室完成,不用寫入實(shí)驗(yàn)報(bào)告。)實(shí)驗(yàn)環(huán)境Oracle 9i(及以上版本)服務(wù)器SQL Plus/ SQL Plus work sheet客戶端實(shí)驗(yàn)?zāi)康?.掌握使用SQL語(yǔ)句進(jìn)行數(shù)據(jù)查詢的方法2. 掌握視圖的創(chuàng)建與使用方法3. 觀察索引的使用效果實(shí)驗(yàn)內(nèi)容及步驟1. 使用University數(shù)據(jù)庫(kù)的數(shù)據(jù)庫(kù)結(jié)構(gòu)和數(shù)據(jù)(smallRelations即可),完成下列查詢:(1) Find the names of courses in Computer science department which have 3 creditsSELECT titleFROM courseWHERE dept_name = 39。Comp. Sci.39。 AND credits = 3(2) For the student with ID 12345 (or any other value), show all course_id and title of all courses registered for by the student. SELECT course_id,titleFROM takes NATURAL JOIN courseWHERE id = 123454. As above, but show the total number of credits for such courses (taken by that stu