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

List of Table Columns Used in Any View in MS SQL

Creating a View in MS SQL

Making a Backup of MS SQL Database With Query

What are Replication and Database Mirroring in SQL Server ?

How to Optimize Stored Procedure in SQL Server ?