單項(xiàng)選擇題

FACULTY表包含以下各列:
FACULTYID VARCHAR2(5) NOT NULL PRIMARY KEY
FIRST_NAME VARCHAR2(20)
LAST_NAME VARCHAR2(20)
ADDRESS VARCHAR2(35)
CITY VARCHAR2(15)
STATE VARCHAR2(2)
ZIP NUMBER(9)
TELEPHONE NUMBER(10)
STATUS VARCHAR2(2) NOT NULL
COURSE 表包含以下各列:
COURSEID VARCHAR2(5) NOT NULL PRIMARY KEY
SUBJECT VARCHAR2(5)
TERM VARCHAR2(6
FACULTYID VARCHAR2(5) NOT NULL FOREIGN KEY
您需要制定一個(gè)報(bào)表,用于確定在下學(xué)期任教的所有副教授。您要?jiǎng)?chuàng)建一個(gè)視圖來(lái)簡(jiǎn)化報(bào)表的創(chuàng)建過(guò)程。以下哪條CREATE VIEW語(yǔ)句將完成此任務(wù)()

A.CREATE VIEW(SELECT first_name,last_name,status,courseid,subject,term FROM faculty,course WHERE facultyid=facultyid)
B.CREATE VIEW pt_view ON(SELEC Tfirst_name,last_name,status,courseid,subject,term FROM faculty f and coursec WHERE f.facultyid=c.facultyid)
C.CREATE VIEW pt_view IN(SELECT first_name,last_name,status,courseid,subject,term FROM faculty course)
D.CREATE VIEW pt_view AS(SELECT first_name,last_name,status,courseid,subject,term FROM facultyf,coursec WHERE f.facultyid=c.facultyid)


您可能感興趣的試卷

你可能感興趣的試題

5.單項(xiàng)選擇題

評(píng)估此CREATE VIEW語(yǔ)句:
CREATE VIEW emp_view
AS SELECT SUM(salary)
FROM employees;
以下哪個(gè)說(shuō)法是的()

A.使用“雇員視圖”視圖不能更新“雇員”表中的數(shù)據(jù)
B.使用“雇員視圖”視圖可以更新“雇員”表中的任何數(shù)據(jù)
C.使用“雇員視圖”視圖不能刪除“雇員”表中的記錄
D.使用“雇員視圖”視圖僅能更新“雇員”表中的“薪金”列