MS SQL Getting a Random Row in a Table

If we want to fetch a random row in a table in MS SQL Server, the following path is followed.

SELECT TOP 1 * FROM {Table Name} ORDER BY NEWID()


You May Interest

What are the Various Limitations of the Views in SQL Server ?

What is the Difference Between VARCHAR and NVARCHAR in SQL Server ...

Making a MS SQL Offline Database Online

What are the System Data Collection Sets Predefined Inside SQL Se ...

Disabling All Constants in a Table in MS SQL