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 order by empno(primary key) desc fetch first 5 rows only