m******u 发帖数: 12400 | 1 http://www.sqlzoo.net/wiki/SELECT_from_Nobel_Tutorial
SQLZOO, select from nobel, problem 14. Your can find the problem by the
above link. | c*****d 发帖数: 6045 | 2 原题给的SQL提示已经够多了
SELECT winner, subject
FROM nobel
WHERE yr=1984
ORDER BY subject IN ('Physics','Chemistry'), subject,winner | m******u 发帖数: 12400 | 3 这个用法我没学过。没看懂。order by 里,这个in clause返回值是0或1,怎么就排到
后面呢? | c*****d 发帖数: 6045 | 4 就是让0和1排序呀
【在 m******u 的大作中提到】 : 这个用法我没学过。没看懂。order by 里,这个in clause返回值是0或1,怎么就排到 : 后面呢?
| c*****d 发帖数: 6045 | 5 我记得你上了老土的SQL课程吧
他讲课连order by expression和order by column(s) not in select也没讲? | m******u 发帖数: 12400 | |
|