I have a table ‘results’ in which the scores are stored. Its ordered by the date of `test’. Now i need to get the details of the users who have secured 1st , 2nd and 3rd in the test.
i suppose that to get the 1st score i can use:
select *
from RESULTS
where SCORE=max(SCORE)
But what about for 2nd and 3rd.
Also is it possible to get the three of them together in a single query.
You could try (MySql)
or (MS-SQL)
or (Oracle)