A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
@Jonathan Brotto
Hi Jon,
If you want the last 100 rows but still in ascending order, you can use another select statement around the first:
MSSQL
select * from (select top 100 * from table order by date desc) a order by a.date;
MySQL
select * from (select * from table order by date desc limit 100) a order by a.date;
Think of it this way: You are sorting the rows first and then selecting how many from the top of that sorted list.
That should help it make sense to you.
The MySQL command is maybe a bit more intuitive in that regard.