针对学生表Student(Sno,Sname, Ssex,S...生的姓名及年龄,SQL语句正确的是()。
举一反三
- 针对学生表Student(Sno,Sname,Ssex,Sage,Sdept),其中sno为学号,sname为姓名,ssex为性别,sage为年龄,sdept为系别。要检索学生表中年龄在16至30岁之间(包括16和30)的学生的姓名及年龄,SQL语句正确的是()。
- 针对学生表Student(Sno,Sname, Ssex,Sage,Sdept)。要检索学生表中年龄在17至25岁之间(包括17和25)的学生的姓名及年龄,SQL语句正确的是
- 假设有学生表student的关系模式如下: student(sno,sname,ssex,sage,sdept) 各属性含义如下: Sno:学生学号 Sname:学生姓名 Ssex:学生性别 Sage:学生年龄 Sdept:学生所在院系 统计各系学生人数。写出sql代码。
- 要在student(sno,sname,ssex,sage,sdept)表中,查询全体女生的姓名、年龄,以下正确的查询语句是( )。 A: select * from student where ssex='女' B: select 姓名, 年龄 from student where 性别 ='女' C: select sname , sage from student where ssex='女’ D: select sname 姓名, sage 年龄 from student where ssex='女'
- 【多选题】针对学生表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