> For the complete documentation index, see [llms.txt](https://851958789.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://851958789.gitbook.io/notes/0619_biggest_single_number/slt.md).

# 思路1

用子查询你找出所有单个元素，再在其中用max找出最大的。不能再GROUP的select语句中直接用max，因为这个max同count一样，则是组内的。

```sql
SELECT MAX(num) as num
FROM (
    SELECT num
    FROM my_numbers
    GROUP BY num
    HAVING COUNT(num)=1
) AS t;
```
