[Microsoft SQL Server Tips] How to get TOP n rows on database use Microsoft SQL Server

0
31

Topic to day!!!

How to get TOP n rows on database use Microsoft SQL Server

Hello everyone, welcome back to Learn Tech Tips channel, I am Zidane, nice to meet you all

Working with Microsoft SQL Server, do you know some query sepecials some query for get n rows (top n rows on data). If you want to ask above question too. Don’t worry, This topic is for you

Today I will show you the tips how to get n rows on database, use below syntax

If you using MySQL, you can use below SQL Query!
Select top n * from table where ID > @ID

Select TOP n

How to get n rows on database with Microsoft SQL Server

Any questions or feedback, leave your comment we can discuss about it!

Learn Tech Tips – Zidane