I have the following table :
X Y X --> Y and X is a primary key
__________
1 2323
2 3122
3 4343
4 4343
5 123
I want print out X according to max Y value .
output :
X Y
__________
3 4343
4 4343
How can I do that ?
Edited (User wanted both X & Y in output)