![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SQL
zwy122
这个作者很懒,什么都没留下…
展开
-
SQL中求最小值的简便方法
對每一個獎項(Subject),列出首次頒發的年份。解答:select distinct subject,yr from nobel x where yr=(select min(yr) from nobel y where y.subject=x.subject )更为简单的方法:select subject,min(yr) from nobel group by...原创 2020-03-25 16:59:12 · 2893 阅读 · 1 评论 -
sql易错点=和in区别
在阿根廷Argentina及 澳大利亞Australia所在的洲份中,列出當中的國家名字name及洲分continent。按國字名字順序排序错误结果:select name,continent from world where continent in (select continent from world where name ='argentina' or 'aust...原创 2020-03-24 11:29:51 · 366 阅读 · 0 评论