I have number of users, each taking 10 questions and leave some time stamps. What I ideally want to do is to find the complete time of the n-th user where n is determined by the ascending order of time stamps, not the user ids.
This will not work, but to give you a feel of what I need I would be very happy if this could run:
SELECT <N-TH> MAX(u.time) AS maxTime FROM Users u
Group BY u.userId ORDER BY maxTime
Any thoughts? right now I am running
SELECT MAX(u.time) AS maxTime FROM Users u
Group BY u.userId ORDER BY maxTime
get the result as array and then find the n-th entry.