SQL Server Performance, DBA Best Practices & Enterprise Data Solutions | MyTechMantra
Home » SQL Server Tutorial » SQL Server SELECT TOP Clause T-SQL Tutorial with Examples

SQL Server SELECT TOP Clause T-SQL Tutorial with Examples

Previous Page.. Begin Tutorial.. Next Page..

The SELECT TOP Clause is used to specify the percentage of rows or to specify the number of rows which needs to be retrieved from a given table.

This is Part 2 of 40 Part SQL Server T-SQL Tutorial. Click here to read it from the beginning….

SELECT TOP Syntax – SQL Server SELECT TOP Clause

Use <DatabaseName>
GO

SELECT TOP VALUE column1, column2, column3,.......
FROM schema.table
GO


SELECT TOP PERCENT Syntax – SQL Server SELECT TOP Clause

Use <DatabaseName>
GO

SELECT TOP VALUE PERCENT column1, column2, column3,.......
FROM schema.table
GO

How to SELECT TOP 10 Records from a table

To select top 10 records from a table execute the below query in SSMS.

Use AdventureWorks2016
GO

SELECT TOP 10
	  FirstName
	, LastName 
FROM Person.Person
	WHERE LastName = 'Williams'
GO
How to SELECT TOP 10 Records from a table


How to SELECT TOP 10 PERCENT Records from a table

To select top 10 percent records from a table execute the below query in SSMS.

Use AdventureWorks2016
GO

SELECT TOP 10 PERCENT
	  FirstName
	, LastName 
FROM Person.Person
	WHERE LastName = 'Williams'
GO
How to SELECT TOP 10 PERCENT Records from a table

Click Next Page button to continue reading the topics and click on the Previous Page button to revisit the previous topic.

Previous Page.. Begin Tutorial.. Next Page..

Ashish Kumar Mehta

Ashish Kumar Mehta is a distinguished Database Architect, Manager, and Technical Author with over two decades of hands-on IT experience. A recognized expert in the SQL Server ecosystem, Ashish’s expertise spans the entire evolution of the platform—from SQL Server 2000 to the cutting-edge SQL Server 2025.

Throughout his career, Ashish has authored 500+ technical articles across leading technology portals, establishing himself as a global voice in Database Administration (DBA), performance tuning, and cloud-native database modernization. His deep technical mastery extends beyond on-premises environments into the cloud, with a specialized focus on Google Cloud (GCP), AWS, and PostgreSQL.

As a consultant and project lead, he has architected and delivered high-stakes database infrastructure, data warehousing, and global migration projects for industry giants, including Microsoft, Hewlett-Packard (HP), Cognizant, and Centrica PLC (UK) / British Gas.

Ashish holds a degree in Computer Science Engineering and maintains an elite tier of industry certifications, including MCITP (Database Administrator), MCDBA (SQL Server 2000), and MCTS. His unique "Mantra" approach to technical training and documentation continues to help thousands of DBAs worldwide navigate the complexities of modern database management.

Add comment

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.