请把下面代码补充完整。( ) 查询年龄在20~23岁(包括20岁和23岁)之间的学生的姓名、系别和年龄。 SELECT Sname, Sdept, Sage FROM Student WHERE Sage 20 23;
A: BETWEEN……AND
B: LIKE
C: =,<=
D: ,
A: BETWEEN……AND
B: LIKE
C: =,<=
D: ,
举一反三
- 请把下面代码补充完整。( ) 查询年龄在20~23岁(包括20岁和23岁)之间的学生的姓名、系别和年龄。 SELECT Sname, Sdept, Sage FROM Student WHERE Sage 20 23; A: BETWEEN……AND B: LIKE C: >=,<= D: >,<
- 下列SQL语句,_____________可以在“学生-课程”数据库正确实现“查询年龄在20-23岁(包括20岁和23岁)之间的学生的姓名、系别和年龄”。 A: SELECT Sname,Sdept,SageFROM StudentWHERE Sage BETWEEN 20 AND 23 B: SELECT Sname,Sdept,SageFROM StudentWHERE Sage 20 AND 23 C: SELECT Sname,Sdept,SageFROM StudentWHERE Sage >=20 AND <=23 D: SELECT Sname,Sdept,SageFROM StudentWHERE Sage NOT BETWEEN 20 AND 23
- 【多选题】针对学生表Student(Sno,Sname, Ssex,Sage,Sdept),其中sno为学号,sname为姓名,ssex为性别,sage为年龄,sdept为系别。要检索学生表中年龄在17至25岁之间(包括16和30)的学生的姓名及年龄,SQL语句正确的是()。 A. Select * From Student Where Sage between 16 and 30 B. Select Sname, Sage From Student Where Sage between 16 and 30 C. Select Sname, Sage From Student Where Sage >= 16and Sage<= 30 D. Select Sname, Sage From Student Where Sage >= 16 or Sage<= 30
- 针对学生表Student(Sno,Sname, Ssex,Sage,Sdept),其中sno为学号,sname为姓名,ssex为性别,sage为年龄,sdept为系别。要检索学生表中年龄在17至25岁之间(包括16和30)的学生的姓名及年龄,SQL语句正确的是( )。 A: Select Sname, Sage From Student Where Sage between 16 and 30; B: Select Sname, Sage From Student Where Sage >= 16and Sage<= 30; C: Select * From Student Where Sage between 16 and 30; D: Select Sname, Sage From Student Where Sage >= 16 or Sage<= 30;
- 【单选题】针对学生表student(sno,sname,ssex,sage,sdept),其中sno为学号,sname为姓名,ssex为性别,sage为年龄,sdept为系别。查询学生的姓名sname,系别sdept和年龄sage,显示时按系别升序排列,系别相同的再按年龄降序排列。() A. select * from student order by sdept , sage B. select sname, sdept, sage from student order by sdept , sage desc C. select sname, sdept, sage from student order by sdept desc , sage D. select * from student order by sdept desc, sage