I have a table in user_statistics. New records appear in it every now and then. I want to get the sum of one column from the last 500 records. How can I achieve it?
I tri