Back
I can do SELECT TOP (200) ... but why not BOTTOM (200)?
Well not to get into philosophy what I mean is, how can I do the equivalent of TOP (200) but in reverse (from the bottom, like you'd expect BOTTOM to do...)?
Try using the code given below:
SELECT columnsFROM (SELECT TOP 200 columns FROM My_Table ORDER BY a_column DESC) SQORDER BY a_column ASC
SELECT columns
FROM (SELECT TOP 200 columns
FROM
My_Table
ORDER BY
a_column DESC
) SQ
ORDER BY a_column ASC
31k questions
32.8k answers
501 comments
693 users