12 lines
352 B
MySQL
12 lines
352 B
MySQL
|
/* Write a SQL query to find all the details of 1970 winners by the ordered to subject and winner name;
|
||
|
but the list contain the subject Economics and Chemistry at last.*/
|
||
|
SELECT *
|
||
|
FROM nobel_win
|
||
|
WHERE year=1970
|
||
|
ORDER BY
|
||
|
CASE
|
||
|
WHEN subject IN ('Economics','Chemistry') THEN 1
|
||
|
ELSE 0
|
||
|
END ASC,
|
||
|
subject,
|
||
|
winner;
|