Skip to content

Commit 634cf02

Browse files
author
deepak14ri
committed
test
1 parent b2e01c8 commit 634cf02

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
SELECT MAX(num) AS num --> Using aggregation function MAX to find max. no. from MyNumbers Table alias as num (show the column)...
2+
FROM MyNumbers --> Association from MyNumbers Table...
3+
WHERE num IN --> Using sub - query for num column...
4+
(SELECT num
5+
FROM MyNumbers
6+
GROUP BY num --> in sub - query we grouped w.r.t. num column...
7+
HAVING COUNT(num) = 1); --> Condition given in the problem...(Number should be single...)

0 commit comments

Comments
 (0)