I have a mysql table having register number, dob, student name, sex, total mark in a semester in each row.
I would like to get records of 10 Boys and 5 girls in descending order of total marks in a single SQL query.
I have a mysql table having register number, dob, student name, sex, total mark
Share
My MySQL dialect is rusty but this should do the trick
It’s a single query, mind you.