| |
comp.databases.mysql |
Consider a table like: user_id score I want to select te average score of a user and will use sth SELECT avg( score ) but sometimes, i want to select the average, but dropping the lowest N thanks
1 90
1 80
1 70
2 85
2 80
2 80
.
.
like:
FROM `score`
GROUP BY user_id
score, how
to write the query?