查询:对于大学中所有讲授过课程的教师,找出他们的姓名及其所讲授课程的ID。 该查询可以写成: select name, course id from instructor natural join teaches;

查询:对于大学中所有讲授过课程的教师,找出他们的姓名及其所讲授课程的ID。 该查询可以写成: select name, course id from instructor natural join teaches;


参考答案和解析
SELECT */Course.* FROM Course;

相关考题:

有教师表(教师号,姓名,职称,所在系)和授课表(教师号,课程号,授课学年,授课时数),同一门课程可由多个教师讲授,同一个教师也可讲授多门课程,查询从未被“教授”讲授过的课程的课程号,正确的语句是______。A.SELECT课程号FROM授课表a JOIN教师表bON a.教师号=b.教师号WHERE职称!=‘教授’B.SELECT课程号FROM授课表a R1GHT OUTTER JOIN教师表b ON a.教师号=b.教师号C.SELECT课程号FROM授课表WHERE课程号NOT IN(SELECT课程号FROM授课表 a JOIN授课表b ON a.教师号=b.教师号WHERE职称!=‘教授’)D.SELECT课程号FROM授课表WHERE课程号IN(SELECT课程号FROM授课表 a JOIN授课表b ON a.教师号=b.教师号WHERE职称!=‘教授’)

( 29 )有教师表(教师号,姓名,职称,所在系)和授课表(教师号,课程号,授课学年,授课时数) ,同一门课程可由多个教师讲授 , 同一个教师也可讲授多门课程 。 查询从未被 “ 教授 ” 讲授过的课程的课程号,正确的语句是A )SELECT 课程号 FROM 授课表 a JOIN 教师表 b ON a. 教师号 = b. 教师号WHERE 职称 != ' 教授 'B )SELECT 课程号 FROM 授课表 a RIGHT OUTTER JOIN 教师表 bON a. 教师号 = b. 教师号WHERE 职称 != ' 教授 ' AND a. 课程号 IS NOT NULLC )SELECT 课程号 FROM 授课表 WHERE 课程号 NOT IN(SELECT 课程号 FROM 授课表 a JOIN 教师表 b ON a. 教师号 = b. 教师号WHERE 职称 = ' 教授 ')D )SELECT 课程号 FROM 授课表 WHERE 课程号 IN(SELECT 课程号 FROM 授课表 a JOIN 教师表 b ON a. 教师号 = b. 教师号WHERE 职称 != ' 教授 ')

Examine the structure of the EMPLOYEES and DEPARTMENTS tables: EMPLOYEESColumn name Data type RemarksEMPLOYEE_ID NUMBER NOT NULL, Primary KeyEMP_NAME VARCHAR2 (30)JOB_ID VARCHAR2 (20)SALARY NUMBERMGR_ID NUMBER References EMPLOYEE_ID COLUMNDEPARTMENT ID NUMBER Foreign key to DEPARTMENT ID column of the DEPARTMENTS tableDEPARTMENTSColumn name Data type RemarksDEPARTMENT_ID NUMBER NOT NULL, Primary Key DEPARTMENT_NAME VARCHAR2(30)MGR_ID NUMBER References MGR_ID column of the EMPLOYEES tableEvaluate this SQL statement:SELECT employee_id, e.department_id, department_name, salaryFROM employees e, departments dWHERE e. department_id = d.department_id;Which SQL statement is equivalent to the above SQL statement? ()A. SELECT employee_id, department_id, department_name, salary FROM employees WHERE department_id IN (SELECT department_id FROM departments);B. SELECT employee_id, department_id, department_name, salary FROM employees NATURAL JOIN departments;C. SELECT employee_id, d.department_id, department_name, salary FROM employees e JOIN departments d ON e.department _ id = d. department_id;D. SELECT employee_id, department_id, department_name, Salary FROM employees JOIN departments USING (e.department_id, d.department_id);

ExhibitExamine the data in the EMPLOYEES and DEPARTMENTS tables.You want to retrieve all employees‘ last names, along with their manager‘s last names and their department names. Which query would you use?()A. SELECT last_name, manager_id, department_name FROM employees e FULL OUTER JOIN department d ON (e.department_id = d.department_id);B. SELECT e.last_name, m.last_name, department_name FROM employees e LEFT OUTER JOIN employees m on ( e.managaer_id = m.employee_id) LEFT OUTER JOIN department d ON (e.department_id = d.department_id);C. SELECT e.last_name, m.last_name, department_name FROM employees e RIGT OUTER JOIN employees m on ( e.manager_id = m.employee_id) FULL OUTER JOIN department d ON (e.department_id = d.department_id);D. SELECT e.last_name, m.last_name, department_name FROM employees e LEFT OUTER JOIN employees m on ( e.manager_id = m.employee_id) RIGT OUTER JOIN department d ON (e.department_id = d.department_id);E. SELECT e.last_name, m.last_name, department_name FROM employees e RIGHT OUTER JOIN employees m on ( e.manager_id = m.employee_id) RIGHT OUTER JOIN departments d ON (e.department_id = d.department_id)F. SELECT last_name, manager_id, department_name FROM employees e JOIN department d ON (e.department_id = d.department_id);

Examine the structure of the EMPLOYEES, DEPARTMENTS, and LOCATIONS tables.EMPLOYEESNOT NULL,EMPLOYEE_ID NUMBERPrimary KeyVARCHAR2EMP_NAME(30)VARCHAR2JOB_ID(20)SALARY NUMBERReferencesMGR_ID NUMBEREMPLOYEE_IDcolumnDEPARTMENT_ID NUMBER Foreign key toDEPARTMENT_IDcolumn of theDEPARTMENTStableDEPARTMENTSNOT NULL, PrimaryDEPARTMENT_ID NUMBERKeyVARCHAR2DEPARTMENT_NAME(30)References NGR_IDMGR_ID NUMBERcolumn ofthe EMPLOYEES tableForeign key toLOCATION_ID NUMBERLOCATION_IDcolumn of theLOCATIONS tableLOCATIONSNOT NULL, PrimaryLOCATION_ID NUMBERKeyVARCHAR2CITY|30)Which two SQL statements produce the name, department name, and the city of all the employees who earn more then 10000?()A. SELECT emp_name, department_name, city FROM employees e JOIN departments d USING (department_id) JOIN locations 1 USING (location_id) WHERE salary 10000;B. SELECT emp_name, department_name, city FROM employees e, departments d, locations 1 JOIN ON (e.department_id = d.department id) AND (d.location_id =1.location_id) AND salary 10000;C. SELECT emp_name, department_name, city FROM employees e, departments d, locations 1 WHERE salary 10000;D. SELECT emp_name, department_name, city FROM employees e, departments d, locations 1 WHERE e.department_id = d.department_id AND d.location_id = 1.location_id AND salary 10000;E. SELECT emp_name, department_name, city FROM employees e NATURAL JOIN departments, locations WHERE salary 10000;

设教师表的结构为:(教师号、姓名、性别、职称、工资、所在系)。授课表的结构为:(教师号、课程号)。若要查询所有教师所讲授的课程,并列出教师号、姓名和课程号,应使用的SELECT语句是 ______。A.SELECT教师表.教师号,姓名,课程号FROM教师表,授课表, WHERE教师表.教师号=教师号B.SELECT教师表.教师号,姓名,课程号FROM教师表,授课表; ON教师表.教师号=授课表.教师号C. SELECT教师表.教师号,姓名,课程号FROM教师表INNER JION授课表; ON教师表.教师号=授课表.教师号D. SELECT教师表.教师号,姓名,课程号FROM教师表INNER JION授课表; WHERE教师表.教师号=授课表.教师号

查询选修C2课程号的学生姓名,下列SQL语句中错误的是 ______。A.SELECT 姓名 FROM S WHERE EXISTS (SELECT*FROM SC WHERE 学号=S.学号 AND 课程号='C2')B.SELECT 姓名 FROM S WHERE 学号 IN (SELECT 学号 FROM SC WHERE 课程号='C2')C.SELECT 姓名 FROM S JOIN SC ON S.学号=SC.学号 WHERE 课程号='C2'D.SELECT 姓名 FROM S WHERE 学号= (SELECT 学号 FROM SC WHERE 课程号='C2')

设教师表的结构为:教师号、姓名、性别、职称、工资、所在系。若要查询“陈静”教师所讲授的课程,并列出姓名和课程名,应使用的语句SELECT-SQL是______。A.SELECT 姓名,课程名FROM 教师表,授课表,课程表; WHERE 教师表.教师号=授课表.教师号AND 姓名=“陈静”B.SELECT姓名,课程名FROM 教师表,授课表,课程表; WHERE 教师表.教师号=授课表.教师号AND授课表.课程号=课程表.课程号; AND姓名=“陈静”C.SELECT姓名,课程名FROM 教师表,授课表,课程表; WHERE教师表.教师号=授课表.教师号AND授课表.教师号=课程表.课程号; AND姓名=“陈静”D.SELECT姓名,课程名FROM 教师表,授课表,课程表; WHERE授课表.课程号=课程表.课程号AND姓名=“陈静”

查询每门课程的课程名、任课教师姓名及其职称、选课人数。对下列的SELECT-SQL语句填空: SELECT课程名,姓名,职称,【 】; FROM课程表,教师表,授课表,选课表; WHERE教师表.教师号=授课表.教师号; AND课程表.课程号=授课表.课程号AND【 】GROUP BY选课表.课程号

查询选修C2课程号的学生姓名,下列SQL,语句中错误的是( )。A.SELECT姓名FROM S WHERE EXISTS (SELECT*FROM SC WHERE学号=S.学号AND 课程号=’C2’)B.SELECT姓名 FROM S WHERE学号IN (SELECT学号FROM SC WHERE课程号=’C2 ’)C.SELECT姓名FROM S JOIN SC ON S.学号=SC. 学号WHERE课程号=’C2’D.SELECT姓名FROM S WHERE学号= (SELECT学号FRM SC WHERE课程号=’C2’)

设教师表的结构为:(教师号、姓名、性别、职称、工资、所在系)。若要查询讲授课程号为“C140'’的教师姓名,下列SELECT语句中,错误的语句是______。A.SELECT姓名FROM教师表WHERE(教师号=ANY; (SELECT教师号FROM授课表WHERE课程号="C140"))B.SELECT姓名FROM教师表WHER EEXISTS(SELECT*FROM授课表; WHERE教师号=教师表.教师号AND课程号="C140")C.SELECT姓名FROM教师表,授课表WHERE教师表.教师号-授课表.教师号; AND授课表.课程号="C140"D.SELECT姓名FROM教师表WHERE(教师号=ALL; (SELECT 教师号 FROM 授课表 WHERE课程号="C140"))

学生表:student(学号,姓名,性别,出生日期,院系)课程表:course(课程号,课程名,学时)选课成绩表:score(学号,课程号,成绩)其中出生日期的数据类型为日期型,学时和成绩为数值型,其他均为字符型。查询“计算机系’’学生的学号、姓名、学生所选课程的课程名和成绩,正确的命令是A.SELECT s.学号,姓名,课程名,成绩 FROM studentS,score SC,course C WHERE s.学号=sc.学号,sc.课程号=c.课程号,院系=‘计算机系’B.SELECT学号,姓名,课程名,成绩 FROM student S,score SC,course c WHERE s.学号=sc.学号AND sc.课程号=c.课程号AND院系=‘计算机系’C.SELECT s.学号,姓名,课程名,成绩 FROM(student s JOIN score sc ON s.学号=sc.学号). JOIN course c ON sc.课程号=c.课程号 WHERE院系=‘计算机系’D.SELECT学号,姓名,课程名,成绩 FROM(student s JOIN score sc‘ON s.学号=sc.学号) JOIN course c ON sc.课程号=c.课程号 WHERE院系=‘计算机系’

查询教师“陈静”讲授的课程,列出教师姓名和课程名。填空补充下面的SQL语句: SELECT姓名,课程名FROM教师表,授课表,课程表; WHERE教师表.教师号=授课表.教师号AND【 】AND【 】。

查询选修 C2 课程号的学生姓名,下列 SQL 语句中错误是A)SELECT 姓名 FROM S WHERE EXISTS (SELECT * FROM SC WHERE 学号 =S. 学号 AND 课程号='C2')B)SELECT 姓名 FROM S WHERE 学号 IN (SELECT 学号 FROM SC WHERE 课程号 ='C2')C)SELECT 姓名 FROM S JOIN SC ON S. 学号 =SC. 学号 WHERE 课程号 ='C2'D)SELECT 姓名 FROM S WHERE 学号 = (SELECT 学号 FROM SC WHERE 课程号 ='C2')

要查询出学号为2008001001所有选取修课程的成绩,正确的是()。A、SELECT学号,姓名,课程代码,总评成绩FROM学生,成绩ON学生.学号=成绩.学号WHERE学号=’2008001001’B、SELECT学号,姓名,课程代码,总评成绩FROM学生INNER JOIN成绩WHERE学生.学号=成绩.学号AND学号=’2008001001’C、SELECT学号,姓名,课程代码,总评成绩FROM学生LEFT OUTER JOIN成绩ON学生.学号=成绩.学号WHERE学号=’2008001001’D、SELECT学号,姓名,课程代码,总评成绩FROM学生,成绩WHERE学生.学号=成绩.学号AND学号=’2008001001’

Examine the data in the EMPLOYEES and DEPARTMENTS tables. EMPLOYEES LAST_NAME DEPARTMENT_ID SALARY Getz 10 3000 Davis 20 1500 Bill 20 2200 Davis 30 5000 Kochhar 5000 DEPARTMENTS DEPARTMENT_ID DEPARTMENT_NAME 10 Sales 20 Marketing 30 Accounts 40 Administration You want to retrieve all employees, whether or not they have matching departments in the departments table. Which query would you use?()A、SELECT last_name, department_name FROM employees , departments(+);B、SELECT last_name, department_name FROM employees JOIN departments(+);C、SELECT last_name, department_name ON (e. department_ id = d. departments_id); FROM employees(+) e JOIN departments dD、SELECT last_name, department_name FROM employees e RIGHT OUTER JOIN departments d ON (e.department_id = d.department_id);E、SELECT last_name, department_name FROM employees(+) , departments ON (e. department _ id = d. department _id);F、SELECT last_name, department_name FROM employees e LEFT OUTER JOIN departments d ON (e. department _ id = d. department _id);

查询没有讲授课程号为C140的教师姓名,错误的语句是()A、SELECT姓名FROM教师表WHERE(教师号ANY(SELECT教师号FROM授课表WHERE课程号=“C140”))B、SELECT姓名FROM教师表WHERENOTEXISTS(SELECT*FROM授课表WHERE教师号=教师表.教师号AND课程号=“C140”)C、SELECT姓名FROM教师表WHERENOTIN(SELECT*FROM授课表WHERE教师号=教师表.教师号AND课程号=“C140”)D、SELECT姓名FROM教师表WHERE(教师号NOTALL(SELECT教师号FROM授课表WHERE课程号=“C140”))

现有学生住处表Student_info,其中包括姓名(stu_name),学号(stu_id),成绩(stu_grade)。我们需要查询成绩为80分的学生姓名,要求结果按照学号降序排列。下面查询语句正确的是()。A、SELECT stu_name FROM student_info Where stu_grade=80 ORDER BY stu_id ASC;B、SELECT stu_name FROM student_info WHERE stu_grade=80 ORDER BY stu_id DESC;C、SELECT stu_id,stu_name FROM student_info WHERE stu_grade=80 ORDER BY stu_name ASC;D、SELECT stu_name FROM student_info WHERE stu_grade LIKE 80 ORDER BY stu_id DESC;

Click the Exhibit button and examine the data in the EMPLOYEES and DEPARTMENTS tables.You want to retrieve all employees, whether or not they have matching departments in the departments table. Which query would you use?()A、SELECT last_name, department_name FROM employees NATURAL JOIN departments;B、SELECT last_name, department_name FROM employees JOIN departments ;C、SELECT last_name, department_name FROM employees e JOIN departments d ON (e.department_id = d.department_id);D、SELECT last_name, department_name FROM employees e RIGHT OUTER JOIN departments d ON (e.department_id = d.department_id);E、SELECT last_name, department_name FROM employees FULL JOIN departments ON (e.department_id = d.department_id);F、SELECT last_name, department_name FROM employees e LEFT OUTER JOIN departments d ON (e.department_id = d.department_id);

Examine the structure of the EMPLOYEES and DEPARTMENTS tables: EMPLOYEESColumn name Data type Remarks EMPLOYEE_ID NUMBER NOT NULL, Primary Key EMP_NAME VARCHAR2 (30) JOB_ID VARCHAR2 (20) SALARY NUMBER MGR_ID NUMBER References EMPLOYEE_ID COLUMN DEPARTMENT ID NUMBER Foreign key to DEPARTMENT ID column of the DEPARTMENTS table DEPARTMENTSColumn name Data type Remarks DEPARTMENT_ID NUMBER NOT NULL, Primary Key DEPARTMENT_NAME VARCHAR2(30) MGR_ID NUMBER References MGR_ID column of the EMPLOYEES table Evaluate this SQL statement: SELECT employee_id, e.department_id, department_name, salary FROM employees e, departments d WHERE e. department_id = d.department_id; Which SQL statement is equivalent to the above SQL statement?()A、SELECT employee_id, department_id, department_name, salary FROM employees WHERE department_id IN (SELECT department_id FROM departments);B、SELECT employee_id, department_id, department_name, salary FROM employees NATURAL JOIN departments;C、SELECT employee_id, d.department_id, department_name, salary FROM employees e JOIN departments d ON e.department _ id = d. department_id;D、SELECT employee_id, department_id, department_name, Salary FROM employees JOIN departments USING (e.department_id, d.department_id);

Examine the structure of the EMPLOYEES, DEPARTMENTS, and LOCATIONS tables. EMPLOYEES NOT NULL, EMPLOYEE_ID NUMBER Primary Key VARCHAR2 EMP_NAME (30) VARCHAR2 JOB_ID (20) SALARY NUMBER References MGR_ID NUMBER EMPLOYEE_ID column DEPARTMENT_ID NUMBER Foreign key to DEPARTMENT_ID column of the DEPARTMENTS table DEPARTMENTS NOT NULL, Primary DEPARTMENT_ID NUMBER Key VARCHAR2 DEPARTMENT_NAME (30) References NGR_ID MGR_ID NUMBER column of the EMPLOYEES table Foreign key to LOCATION_ID NUMBER LOCATION_ID column of the LOCATIONS table LOCATIONS NOT NULL, Primary LOCATION_ID NUMBER Key VARCHAR2 CITY |30) Which two SQL statements produce the name, department name, and the city of all the employees who earn more then 10000?()A、SELECT emp_name, department_name, city FROM employees e JOIN departments d USING (department_id) JOIN locations 1 USING (location_id) WHERE salary 10000;B、SELECT emp_name, department_name, city FROM employees e, departments d, locations 1 JOIN ON (e.department_id = d.department id) AND (d.location_id =1.location_id) AND salary 10000;C、SELECT emp_name, department_name, city FROM employees e, departments d, locations 1 WHERE salary 10000;D、SELECT emp_name, department_name, city FROM employees e, departments d, locations 1 WHERE e.department_id = d.department_id AND d.location_id = 1.location_id AND salary 10000;E、SELECT emp_name, department_name, city FROM employees e NATURAL JOIN departments, locations WHERE salary 10000;

Examine the structure of the EMPLOYEES and DEPARTMENTS tables: EMPLOYEES EMPLOYEE_ID NUMBER DEPARTMENT_ID NUMBER MANAGER_ID NUMBER LAST_NAME VARCHAR2(25) DEPARTMENTS DEPARTMENT_ID NUMBER MANAGER_ID NUMBER DEPARTMENT_NAME VARCHAR2(35) LOCATION_ID NUMBER You want to create a report displaying employee last names, department names, and locations. Which query should you use?()A、SELECT e.last_name, d. department_name, d.location_id FROM employees e NATURAL JOIN departments D USING department_id ;B、SELECT last_name, department_name, location_id FROM employees NATURAL JOIN departments WHERE e.department_id =d.department_id;C、SELECT e.last_name, d.department_name, d.location_id FROM employees e NATURAL JOIN departments d;D、SELECT e.last_name, d.department_name, d.location_id FROM employees e JOIN departments d USING (department_id );

单选题Examine the structure of the EMPLOYEES and DEPARTMENTS tables: EMPLOYEESColumn name Data type Remarks EMPLOYEE_ID NUMBER NOT NULL, Primary Key EMP_NAME VARCHAR2 (30) JOB_ID VARCHAR2 (20) SALARY NUMBER MGR_ID NUMBER References EMPLOYEE_ID COLUMN DEPARTMENT ID NUMBER Foreign key to DEPARTMENT ID column of the DEPARTMENTS table DEPARTMENTSColumn name Data type Remarks DEPARTMENT_ID NUMBER NOT NULL, Primary Key DEPARTMENT_NAME VARCHAR2(30) MGR_ID NUMBER References MGR_ID column of the EMPLOYEES table Evaluate this SQL statement: SELECT employee_id, e.department_id, department_name, salary FROM employees e, departments d WHERE e. department_id = d.department_id; Which SQL statement is equivalent to the above SQL statement? ()ASELECT employee_id, department_id, department_name, salary FROM employees WHERE department_id IN (SELECT department_id FROM departments);BSELECT employee_id, department_id, department_name, salary FROM employees NATURAL JOIN departments;CSELECT employee_id, d.department_id, department_name, salary FROM employees e JOIN departments d ON e.department _ id = d. department_id;DSELECT employee_id, department_id, department_name, Salary FROM employees JOIN departments USING (e.department_id, d.department_id);

单选题Click the Exhibit button and examine the data in the EMPLOYEES and DEPARTMENTS tables.You want to retrieve all employees, whether or not they have matching departments in the departments table. Which query would you use?()ASELECT last_name, department_name FROM employees NATURAL JOIN departments;BSELECT last_name, department_name FROM employees JOIN departments ;CSELECT last_name, department_name FROM employees e JOIN departments d ON (e.department_id = d.department_id);DSELECT last_name, department_name FROM employees e RIGHT OUTER JOIN departments d ON (e.department_id = d.department_id);ESELECT last_name, department_name FROM employees FULL JOIN departments ON (e.department_id = d.department_id);FSELECT last_name, department_name FROM employees e LEFT OUTER JOIN departments d ON (e.department_id = d.department_id);

单选题Examine the structure of the EMPLOYEES and DEPARTMENTS tables: EMPLOYEESColumn name Data type Remarks EMPLOYEE_ID NUMBER NOT NULL, Primary Key EMP_NAME VARCHAR2 (30) JOB_ID VARCHAR2 (20) SALARY NUMBER MGR_ID NUMBER References EMPLOYEE_ID COLUMN DEPARTMENT ID NUMBER Foreign key to DEPARTMENT ID column of the DEPARTMENTS table DEPARTMENTSColumn name Data type Remarks DEPARTMENT_ID NUMBER NOT NULL, Primary Key DEPARTMENT_NAME VARCHAR2(30) MGR_ID NUMBER References MGR_ID column of the EMPLOYEES table Evaluate this SQL statement: SELECT employee_id, e.department_id, department_name, salary FROM employees e, departments d WHERE e. department_id = d.department_id; Which SQL statement is equivalent to the above SQL statement?()ASELECT employee_id, department_id, department_name, salary FROM employees WHERE department_id IN (SELECT department_id FROM departments);BSELECT employee_id, department_id, department_name, salary FROM employees NATURAL JOIN departments;CSELECT employee_id, d.department_id, department_name, salary FROM employees e JOIN departments d ON e.department _ id = d. department_id;DSELECT employee_id, department_id, department_name, Salary FROM employees JOIN departments USING (e.department_id, d.department_id);

单选题Examine the structure of the EMPLOYEES and DEPARTMENTS tables: EMPLOYEES EMPLOYEE_ID NUMBER DEPARTMENT_ID NUMBER MANAGER_ID NUMBER LAST_NAME VARCHAR2(25) DEPARTMENTS DEPARTMENT_ID NUMBER MANAGER_ID NUMBER DEPARTMENT_NAME VARCHAR2(35) LOCATION_ID NUMBER You want to create a report displaying employee last names, department names, and locations. Which query should you use?()ASELECT e.last_name, d. department_name, d.location_id FROM employees e NATURAL JOIN departments D USING department_id ;BSELECT last_name, department_name, location_id FROM employees NATURAL JOIN departments WHERE e.department_id =d.department_id;CSELECT e.last_name, d.department_name, d.location_id FROM employees e NATURAL JOIN departments d;DSELECT e.last_name, d.department_name, d.location_id FROM employees e JOIN departments d USING (department_id );

单选题关于查询中列的别名, 以下()语句是不正确的ASelect name as’姓名’from tableBSelect name as姓名from table where id=1CSleect name=姓名from table姓名=names(正确答案)DSelect names姓名from table

单选题查询没有讲授课程号为C140的教师姓名,错误的语句是()ASELECT姓名FROM教师表WHERE(教师号ANY(SELECT教师号FROM授课表WHERE课程号=“C140”))BSELECT姓名FROM教师表WHERENOTEXISTS(SELECT*FROM授课表WHERE教师号=教师表.教师号AND课程号=“C140”)CSELECT姓名FROM教师表WHERENOTIN(SELECT*FROM授课表WHERE教师号=教师表.教师号AND课程号=“C140”)DSELECT姓名FROM教师表WHERE(教师号NOTALL(SELECT教师号FROM授课表WHERE课程号=“C140”))