为列出居住在MA或者DC州的所有的出版商,其SELECT语句的WHERE子句是( )。
A: WHERE State = (‘MA’,‘DC’)
B: WHERE State IN (‘MA’,‘DC’)
C: WHERE State BETWEEN ‘MA’ AND ‘DC’
D: WHERE State=‘MA’ AND? State=‘DC’
A: WHERE State = (‘MA’,‘DC’)
B: WHERE State IN (‘MA’,‘DC’)
C: WHERE State BETWEEN ‘MA’ AND ‘DC’
D: WHERE State=‘MA’ AND? State=‘DC’
举一反三
- 为列出居住在MA或者DC州的所有的出版商,其SELECT语句是()。 A: A B: B C: C D: D
- select au_id from authors where state=”ca” or state=”ks”. 下面哪一条语句与这一条语句执行效果相同? A: select au_id from authors where statenot IN(“ca”,”ks”) B: select au_id from authors where state between ac and sk C: select au_id from authors where state not between ca and ks D: select au_id from authors where state IN(“ca”,”ks”)
- Where was Confucius born?( ) A: Qin State B: YanState C: Lu State D: Qi State
- 在学生表STUD中,查询既不是信息系“IS”、数学系“MA”,也不是计算机系“CS”的学生的姓名(XM)和性别(XB)。实现该功能的正确SQL语句是______。 A: SELECT XM.XB FROM STUD WHERE SD IN ("IS","MA","CS") B: SELECT XM.XB FROM STID WHERE SD NOT IN("IS","MA","CS") C: SELECT XM.XB FROM STUD WHERE SD NOT("IS","MA","CS") D: SELECT XM.XB FROM STUD WHERE SD NOT IN (IS,MA,CS)
- 在学生表STUD中,查询既不是信息系'IS'、数学系'MA',也不是计算机系'CS'的学生的姓名 (XM)和性别(XB)。SD为系名。实现该功能的正确SQL语句是( )。 A: SELECT XM, XB FROM STUD WHERE SD IN ('IS','MA','CS'); B: SELECT XM, XB FROM STUD WHERE SD NOT 1N ('IS','MA','CS'); C: SELECT XM, XB FROM STUD WHERE SD NOT ('IS','MA','CS') D: SELECT XM, XB FROM STUD WHERE SD NOT IN (IS, MA, C;