This question has already been answered:
- Sum of the last 10 lines 1 answer
Good afternoon dear experts, help with a question on MySQL. Suppose there is a table "employees", in it the columns "id (employee)", "salary", "payment date" how to get the sum of the last 10 payments (by date) of this table? thank.
SELECT SUM(зарплата) FROM сотрудники "что дописать?"