diff --git a/Problems/Query-33 Issue-#20/Query-33 Issue-#20.md b/Problems/Query-33 Issue-#20/Query-33 Issue-#20.md new file mode 100644 index 0000000..120b35c --- /dev/null +++ b/Problems/Query-33 Issue-#20/Query-33 Issue-#20.md @@ -0,0 +1,9 @@ +SELECT * FROM table WHERE salary = + ( + SELECT MIN(salary) FROM table + WHERE salary IN ( + SELECT DISTINCT TOP N + salary FROM table + ORDER BY salary DESC + ) + )