Hello
I want get last 5 records in order.
I found this:
SELECT * FROM mytable ORDER BY rec_date DESC LIMIT 5;
And as it inverses ordering, I have to do this, instead:
SELECT *
FROM (SELECT * FROM mytable ORDER BY rec_date DESC LIMIT 5)
ORDER BY rec_date ASC;
How do you do the second query in Sequelize?