Grokking SQL for Tech Interviews
Vote

0% completed

​

4. Biggest Single Number

Problem

Table: MyNumbers

+-------------+------+
| Column Name | Type |
+-------------+------+
| num         | int  |
+-------------+------+
This table may contain duplicates (In other words, there is no primary key for this table in SQL).
Each row of this table contains an integer.

Problem Definition

A single number is a number that appeared only once in the MyNumbers table.

Find the largest single number. If there is no single number, report null.

Example

Output

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content