I have a table where I have the student's name and punctuation, I need to pick up 5 random students and display them in ascending order of punctuation.
I tried to do this, but he's just bringing students randomly and not ordering the score:
SELECT * FROM 'aluno' ORDER BY RAND() , 'AlunoPontos' ASC LIMIT 0 , 5
Does anyone know how I can do this type of query?
Thank you.