---
title: "Return Top Five Recodrs From Table"  
description: "Return Top Five Recodrs From Table"  
author: "Anoop Singh"  
published: 2010-10-08  
updated: 2010-10-08  
canonical: https://www.mindstick.com/forum/27/return-top-five-recodrs-from-table  
category: "mssql server"  
tags: ["mssql server"]  
reading_time: 1 minute  

---

# Return Top Five Recodrs From Table

Hi All,\
\
Could [anyone](https://www.mindstick.com/articles/23207/how-to-find-the-best-fit-job-for-anyone) please help me out. How to [query in sql](https://www.mindstick.com/forum/160921/help-with-writing-a-recursive-query-in-sql-server) [server](https://www.mindstick.com/articles/43769/what-is-serverless-architecture-is-it-worth-switching-over) 2008 to get \
top 5 records.\
\
![Return Top Five Recodrs From Table](https://www.mindstick.com/app_images/htmleditor.icons/flower.gif) ![Return Top Five Recodrs From Table](https://www.mindstick.com/app_images/htmleditor.icons/eusa_doh.gif) thanks\

## Replies

### Reply by Anonymous User

Hi Anoop,\
\
You can select top 5 records from your table by using [sql server](https://www.mindstick.com/articles/12999/what-is-table-valued-function-in-sql-server) top(<number of rows>) function.\
\
Here is an example, which selects top 5 records from table student_record.\
\

```
selecttop(5) * from student_record
```


---

Original Source: https://www.mindstick.com/forum/27/return-top-five-recodrs-from-table

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
