diff --git a/Easy/Biggest Single number.sql b/Easy/Biggest Single number.sql index 98601f7..a6ef4ef 100644 --- a/Easy/Biggest Single number.sql +++ b/Easy/Biggest Single number.sql @@ -29,4 +29,14 @@ from from my_numbers group by num having count(*)=1 -) a \ No newline at end of file +) a + + +------------Alternate solution--------- +select max(num) as num +from( + select num, count(*) + from my_numbers + group by num + having count(*)=1 +) as a;