Trying to sum all columns in my table and to find the top 3 of them.
columns have only a value of 1 or 0. That's why I am trying to sum the all inputs to compare them with each other.
I've stucked with order by code integrated into sum()
SELECT (ID)
FROM Student
ORDER BY SUM(C1), SUMC(C2)...SUM(C10)
lIMIT 3
See Question&Answers more detail:os