Pregunta

I want to visualize data from a Google Spreadsheet and I only want to show the last 60 entries. I tried it with:

setQuery('select A, D limit 60');

But it starts from the beginning not from the end in a reverse order. I also played around with offset but I would have to count the entries before that would make sense. Is there an easy way for that?

¿Fue útil?

Solución

Thanks to @asgallent, the correct code is:

setQuery('select A, D ORDER BY A DESC limit 60');
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top