
So the question is how can i show the Supplier (S) that has the maximum quantity (QTY) from table SP.
This is what i came up with:
SELECT sno FROM sp WHERE sno in (SELECT max(QTY) FROM sp WHERE qty);
but it is showing only empty field, and i cannot find the problem.
I would really appreciate your help.
1 Answer