当前位置: 首页 > news >正文

凡科做网站给后台的吗网站更改建设方案模板

凡科做网站给后台的吗,网站更改建设方案模板,怎么给别人做网站网站,黄冈工程造价信息网实验五 数据库综合查询一、实验目的1. 掌握SELECT语句的基本语法和查询条件表示方法#xff1b; 2. 掌握查询条件种类和表示方法#xff1b; 3. 掌握连接查询的表示及使用#xff1b; 4. 掌握嵌套查询的表示及使用#xff1b; 5. 了解集合查询的表示及使用。二、实验内容1.…实验五 数据库综合查询一、实验目的1. 掌握SELECT语句的基本语法和查询条件表示方法 2. 掌握查询条件种类和表示方法 3. 掌握连接查询的表示及使用 4. 掌握嵌套查询的表示及使用 5. 了解集合查询的表示及使用。二、实验内容1. 了解SELECT语句的基本语法格式和执行方法2. 以数据库原理实验5数据为基础请使用T-SQL 语句实现进行相应操作 3. 完成实验报告。三、实验步骤1. 查询以‘数据_’开头,且倒数第3个字符为‘结’的课程的详细情况 select*from coursewhere Cname like 数据\\_%结_escape\\2. 查询名字中第2个字为‘阳’的学生姓名和学号及选修的课程号、课程名 select sname 姓名,student.sno 学号,course.cno 课程号,course.cname 课程名from student,course,scwhere student.snosc.sno and sc.cnocourse.cno and sname like_阳%3. 列出选修了‘数学’或者‘大学英语’的学生学号、姓名、所在院系、选修课程号及成绩select student.sno,sname,sdept,cno,gradefrom student,scwhere student.snosc.sno and cno IN(select cno from course where cname数学OR CNAME大学英语)4. 查询缺少成绩的所有学生的详细情况;select*from studentwhere not exists(select* from scwhere snostudent.sno and grade is not null) select* from student where sno in( select sno from scwhere grade is null)5. 查询与‘张力’(假设姓名唯一)年龄不同的所有学生的信息 select b.*from student a,student bwhere a.sname张力and a.sageb.sage6. 查询所选课程的平均成绩大于张力的平均成绩的学生学号、姓名及平均成绩select student.sno,sname,平均成绩avg(grade)from student,scwhere sc.snostudent.sno group by student.sno,sname having avg(grade)( select avg(grade) from sc where sno( select sno from student where sname张力))7. 按照?学号姓名所在院系已修学分?的顺序列出学生学分的获得情况。其中已修学分为考试已经及格的课程学分之和select student.sno 学号,sname 姓名,sdept 院系,已修学分sum(credit)from student,course,scwhere student.snosc.sno and course.cnosc.cno and grade60 group by student.sno,sname,sdept8. 列出只选修一门课程的学生的学号、姓名、院系及成绩 select student.sno 学号,sname 姓名,sdept 院系,gradefrom student,scwhere student.snosc.sno and sc.sno in( select sno from sc group by snohaving count(cno)1)9. 查找选修了至少一门和张力选修课程一样的学生的学号、姓名及课程号 select distinct student.*from student where sno in( select sno from scwhere cno in( select cno from coursewhere cname数据库or cname数据结构))10. 只选修?数据库?和?数据结构?两门课程的学生的基本信息 select z.cno,z.cname,x.sno,x.sname,gradefrom student x,sc y,course z where x.snoy.sno and y.cnoz.cno11. 至少选修?数据库?或?数据结构?课程的学生的基本信息select *from student,sc,course where student.snosc.sno and sc.cnocourse.cno and cname数据库orcname数据结构12. 列出所有课程被选修的详细情况包括课程号、课程名、学号、姓名及成绩 select course.cno,course.cname,student.sno,student.sname,gradefrom student,sc,course where student.snosc.cnoand sc.cnocourse.cno13. 查询只被一名学生选修的课程的课程号、课程名 select cno,cnamefrom course where cno in (select cnofrom sc group by cnohaving count(sno)1)14. 使用嵌套查询列出选修了?数据结构?课程的学生学号和姓名 select sno,snamefrom student where sno in (select sno from sc where cno in (select cno from coursewhere cname数据结构))15. 使用嵌套查询查询其它系中年龄小于CS系的某个学生的学生姓名、年龄和院系select sname,sage,sdeptfrom student where sage (select max(sage) from student where sdeptcsand sdeptcs)16. 使用ANY、ALL 查询列出其他院系中比CS系所有学生年龄小的学生 select sname,sagefrom student where sageand sdeptcs)select sname,sage from student where sageand sdeptcs)17. 分别使用连接查询和嵌套查询列出与‘张力’在一个院系的学生的信息 select*from studentwhere sdept (select sdept from studentwhere sname张力)18. 使用集合查询列出CS系的学生以及性别为女的学生名单 select snamefrom student where sdeptcs unionselect sname from studentwhere ssex女19. 使用集合查询列出CS系的学生与年龄不大于19岁的学生的交集、差集 select*from student where sdeptcs intersect select* from studentwhere sage1920. 使用集合查询列出选修课程1的学生集合与选修课程2的学生集合的交集 select snofrom sc where cno1 intersect select sno from scwhere cno2
http://www.pierceye.com/news/264415/

相关文章:

  • 合肥优化网站福州网站设计
  • 企业网站制作前期需要什么资料网站 月15g流量够用吗
  • 网络营销网站建设ppt环艺做网站
  • 手机建设银行官方网站网站开发要点
  • 做简历的网站有随州网站建设学校
  • 深圳建设网站企业青白江做网站的公司
  • dm网站制作软件无忧网站建设
  • 如何在自己的网站上做歌单王建设医生网站
  • 科技+杭州+网站建设做效果图的网站有哪些
  • 引流推广网站平台wordpress页面发布失败
  • 南京哪家网站建设好网站开发需要注意的
  • 一个综合网站上线多少钱wordpress粘贴word
  • 承接电商网站建设新手做自己的网站
  • 网页版视频网站建设需要多少钱四川鸿业建设集团公司网站
  • h5网站实例wordpress改造mip
  • 完整的网络营销推广方案包括优化营商环境心得体会个人
  • 商洛市住房和城乡建设局网站建免费网站
  • 做网站要多少的服务器网站设计的步骤
  • 网站关键词怎么做上首页wordpress 架构原理
  • 厦门专业网站建设代理国外在线crm系统suitecrm
  • 哪个网站可以领手工活在家做wordpress heroku
  • 为什么没有网站做图文小说电子商务网站开发的课程介绍
  • 在哪个网站做问卷好单页面网站推广
  • 专业网站建设模块维护静海网站建设
  • 国内前十网站建设公司龙之网官网
  • 昆山做网站的公昆山做网站的公司司网站开发与设计岗位职责
  • 网站投注员怎么做做旅游项目用哪家网站好
  • 环县网站怎么做咸阳网站开发公司地址
  • 重庆巴南网站制作wordpress外贸建站公司
  • 桂林旅游网站制作公司软件开发公司属于什么行业