Hello friends, i am facing a bit of difficulty in designing a SQL query for calculating the total score of all the quizes taken by users in my quiz application to create a sort of leaderboard or ranking system.
My table have following tables:
UserQuizID (int) - PK
Now the problem is that a user can take a particular quiz many times over but i want to consider the score of only the first time a user takes a particluar quiz. I think we can do this by taking that score which has the minimum DateTimeComplete value for the given QuizID and the Username.
I just want to create a leader board system in which i can display the ranking of my users according to their total score in the quizzes taken by them.
Thanks in advance...any help will be greatly appreciated