Q
Problem solve Get help with specific problems with your technologies, process and projects.

Retrieving the first two rows in a table

SQL Server Development expert Greg Low explains how to retrieve the first two rows in a table in SQL Server 2000.

How do I retrieve the first two rows in a table?
In SQL Server 2000 or later you use the TOP statement. For example:

SELECT TOP 2 * FROM authors ORDER BY au_lname,au_fname

View questions and answers from all of our SQL Server experts here.

Dig Deeper on Microsoft SQL Server Database Development

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close