sqlServer2005习题与答案分析和总结.docxVIP

  • 0
  • 0
  • 约1.64万字
  • 约 39页
  • 2023-11-20 发布于上海
  • 举报
sqlServer2005 习题与答案 从学生表 Student(Sno,Sname,Ssex,Sage,Sdept)中查询出全体学生的学号与姓名 查询全体学生的详细记录 显示前 5 条纪录 显示前 50%条纪录 查询所有年龄在 17 岁以下的学生姓名及其年龄。 某些学生选修课程后没有参加考试,所以有选课记录,但没有考试成绩。查询缺少成绩的学生的学号和相应的课 程号。(成绩为 null) 查所有有成绩的学生学号和课程号 查询学生的所有信息,按学号的降序排列 select * from student 2.select top 5 * from student 3.select top 50 percent * from student 4.select sname,sage from student where sagelt;17 select sno,cno from sc where score is NULL NULL  select sno,cno from sc where score is not select * from student order by sno desc 8 查询选修了课程的学生学号 查全体学生的姓名及其出生年份,显示两列:姓名、 出生年份 查询年龄在 15~17 岁(包括 15 岁和 17 岁)之间的学生的姓名、年龄。 查询年龄不在 15~17

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档