Dev Corner

Software Developer’s Notepad

Here is a SQL query that selects a random row from a Microsoft SQL Server table.

SELECT TOP 1 first_name, last_name FROM customer ORDER BY NEWID()

Add A Comment

You must be logged in to post a comment.