Table :
a | b
1 | 15
2 | 10
3 | 20
4 | 30
Query:
SELECT AVG(table.b) FROM table ORDER BY table.a ASC LIMIT 3
Will return 18.75 instead of expected 15.
How can I change the query to get my expected result (AVG
value for a limited amount of rows)?