I have a series of values in a database that I need to pull to create a line chart. Because i dont require high resolution I would like to resample the data by selecting every 5th row from the database.
@row := @row +1 AS rownum, [column name]
SELECT @row :=0) r, [table name]
WHERE rownum % [n] = 1