I want to select the last 5 records from a table in SQL Server without arranging the table in ascending or descending order.
Try this, if you don't have a primary key or identical column:
select [Stu_Id],[Student_Name] ,[City] ,[Registered], RowNum = row_number() OVER (ORDER BY (SELECT 0)) from student ORDER BY RowNum desc