A: SELECT XM, SA, SD FROM STUD WHERE BETWEEN 20<SA<23;
B: SELECT XM, SA, SD FROM STUD WHERE SA BETWEEN 23 AND 20;
C: SELECT XM, SA, SD FROM STUD WHERE SA NOT BETWEEN 20 AND 23;
D: SELECT XM, SA, SD FROM STUD WHERE SA BETWEEN 20 AND 23;
举一反三
- 在学生表STUD中,查询年龄在20至23岁之间的学生的姓名(XM)、年龄(SA)和所在系(SD),实现该功能的正确SQL语句是( )。 A: SELECT XM,SA,SD FROM STUD WHERE BETWEEN 20B.SELECT XM,SA,SD.FROM STUD WHERE SA BETWEEN 23 AND 20 B: SELECT XM,SA,SD FROM STUD WHERE SA NOT BETWEEN 20 AND 23 C: SELECT XM,SA,SD FROM STUD WHERE SA BETWEEN 20 AND 23
- 在学生表STUD中,查询年龄在20~23岁之间的学生的姓名(XM)、年龄(S A: 和所在系(SD),实现该功能的正确SQL语句是______。A) SELECT XM, SA, SD FROM STUD B: WHERE BETWEEN 20<SA<23; C: SELECT XM, SA, SD FROM STUD D: WHERE SA BETWEEN 23 AND 20; E: SELECT XM, SA, SD FROM STUD F: WHERE SA NOT BETWEEN 20 AND 23; G: SELECT XM, SA, SD FROM STUD H: WHERE SA BETWEEN 20 AND 23;
- 在学生表STUD中,查询年龄在20至23岁之间的学生的姓名(XM)、年龄(S A: 和所在系(SD) ,实现该功能的正确SQL语句是______。A) SELECTXM,SA,SD FROM STUD B: WHERE BETWEEN 20B.SELECT XM,SA,SD FROM STUD C: WHERE SA BETWEEN 23 AND 20; D: SELECT XM,SA,SD FROM STUD E: WHERE SA NOT BETWEEN 20 AND 23; F: SELECT XM,SA,SD FROM STUD G: WHERE SA BETWEEN 20 AND 23;
- 在学生表STUD中,查询年龄在20至23岁之间的学生的姓名(XM)、年龄(S A: 和所在系(SD),实现该功能的正确SQL语句是A) SELECT XM,SA,SD FROM STUD B: WHERE BETWEEN 20<SA<23; C: SELECTXM,SA,SD FROM STUD D: WHERE SA BETWEEN23 AND 20 E: SELECTXM,SA,SDFROM STUD F: WHERE SA NOT BETWEEN 20 AND23 G: SELECT XM,SA,SDFROM STUD H: WHERE SA BETWEEN 20 AND23
- 在学生表STUD中查询所有小于20岁的学生的姓名(XM)及其年龄(SA) 。实现该功能的正确SQL语句是______。 A: SELECT XM,SA FROM STUD FOR SA<20 B: SELECT XM,SA FROM STUD WHERE NOT SA>=20 C: SELECT XM,SA ON STUD FOR SA<20 D: SELECT XM,SA ON STUD WHERE SA<20
内容
- 0
在关系二维表STUD中查询所有年龄小于25岁的学生名(XM)及其年龄(SA)。正确的SQL语句为______。 A: SELECT XM, SA FROM STUD FOR SA<25; B: SELECT XM, SA FROM STUD WHERE SA<25; C: SELECT XM, SA ON STUD FOR SA<25; D: SELECT XM,SA ON STUD WHERE SA<25;
- 1
在学生表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;
- 2
在学生表STUD中,查询既不是信息系’IS’、数学系’MA’,也不是计算机系’CS’的学生的姓名 (XM)和性别(XB)。SD为系名。实现该功能的正确SQL语句是( )。 A: SELECT XM,XB B: FROM STUD C: WHERE SD IN (’IS’,’MA’,’CS’); D: SELECT XM,XB E: FROM STUD F: WHERE SDNOTIN (’IS’,’MA’,’CS’); G: SELECT XM,XB H: FROM STUD I: WHERE SD NOT (’IS’,’MA’,’CS’); J: SELECT XM,XB K: FROM STUD L: WHERE SD NOT IN (IS,MA,CS);
- 3
在学生表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)
- 4
查询年龄不在20到23岁之间的学生的信息,所使用的语法命令为() A: select * from student where age not between 20 and 23 B: select * from student where age between 20 and 23 C: select * from student where age not between 20 to 23 D: select * from student where not age from 20 to 23