I want to select the last 5 records from a table in SQL Server without arranging the table in ascending or descending order.
Suppose you have an index on id, this will be lightning fast:
SELECT * FROM [MyTable] WHERE [id] > (SELECT MAX([id]) - 5 FROM [MyTable])