619_Biggest Single Number
[easy]
Tablenumber
contains many numbers in columnnumincluding duplicated ones.
Can you write a SQL query to find the biggest number, which only appears once.
For the sample data above, your query should return the following result:
Note: If there is no such number, just output null.
Solution 1:
Solution 2:
This problem is easy. The only difficult part is if there is no such number, how can we output NULL. One solution is to have a outsider select clause. The other solution is to use max() function such that if there is no input, max() will output NULL.
Last updated