
Problem
Table number contains many numbers in column num including 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.
Analysis
- Get numbers that appear only once:
|
|
- Output the max number:
|
|
Solution
|
|
Link
619. Biggest Single Number
(中文版) SQL 笔记: Leetcode#619 Biggest Single Number




近期评论