I am querying a mysql database to plot some of the variables. I would like to limit the no of points read to a fixed number, say 3000.
So if a table has more than 3000 rows (say it has 6000 rows), I would like to read the 1,3,5,7 th row etc, so that the chart made with the data has 3000 points but is still representative of the dataset. I think the LIMIT keyword may not be appropriate if it selects contiguous rows at any location.
How can this be done?
Thanks DY