I want to select the last 5 records from a table in SQL Server without arranging the table in ascending or descending order.
select * from table limit 5 offset (select count(*) from table) - 5;