【Intermediate SQL-1 】五道较难的sql练习_大连理工软院数据库上机答案

破题累死我了,网上另外一份答案写的也不错

(链接:http://blog.csdn.net/cygeek_dut/article/details/13090743

但是他有的地方显然写麻烦了,而且对于第五个问那份答案好像理解错了题意,我仔细研究了下,写了份原创的,如果改一下缩进和变量名什么的,应该比网上这份仁兄的答案短一点。


我还真头一次知道sql原来可以写的这么跳,写的如此花哨。。简直是秀操作。。。 orz


当然也有可能存在有问题的地方,欢迎指正交流~!

我这里直接贴代码了,题目数据库数据的构建之类的请参考上面提到的那份答案


第一题:

1. Find the sections which have the minimum enrollment among sections registered by students. For each section as such, information displayed should involve: 
l Identifier of section(i.e. the primary key for section) l Course name corresponding to the section l Enrollment of the section('enrollment' is the alias for the number of students who registered for the section) l TOP keyword in SQL Server is denied.  


                
  • 3
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值