About 1,270,000 results
Open links in new tab
  1. SQL SELECT TOP, LIMIT, FETCH FIRST ROWS ONLY, ROWNUM - W3Schools

    The SELECT TOP clause is used to specify the number of records to return. The SELECT TOP clause is useful on large tables with thousands of records. Returning a large number of …

  2. TOP (Transact-SQL) - SQL Server | Microsoft Learn

    In a SELECT statement, always use an ORDER BY clause with the TOP clause. This is the only way to predictably indicate which rows are affected by TOP. Use OFFSET and FETCH in the …

  3. SQL Server SELECT TOP

    This tutorial shows you how to use the SQL Server SELECT TOP statement to limit the number of rows or percentage of rows returned by a query.

  4. SELECT TOP 10 SQL Examples - SQL Server Tips

    May 9, 2024 · In this article, we look at various ways to use SQL SELECT TOP to return a certain number or percentage of rows when selecting data.

  5. SQL SELECT TOP statement overview and examples

    In this article, we will learn how to use SQL SELECT TOP queries and we will also reinforce this learning using examples. The TOP clause allows us to limit the result set of the queries …

  6. SQL TOP, LIMIT, FETCH FIRST Clause - GeeksforGeeks

    Nov 10, 2025 · The query selects the top 4 employees from the Employee table. The results are sorted by Salary in descending order, so it returns the 4 highest-paid employees.

  7. SQL: SELECT TOP Statement - TechOnTheNet

    This SQL tutorial explains how to use the SQL SELECT TOP statement with syntax and examples. The SQL SELECT TOP statement is used to retrieve records from one or more …

  8. SQL TOPSQL Tutorial

    For example, if you want to retrieve the first 10 rows, you would use SELECT TOP 10. column1, column2, …: These are the columns you want to retrieve from the table. You can specify one …

  9. How to Use TOP in SQL with Examples

    Mar 3, 2024 · One more variation worth mentioning is the use of SQL TOP with a percentage: This query selects the top 10% of records, sorted by salary. It’s a fantastic way to retrieve a …

  10. SQL TOP Clause - Tutorial Gateway

    We can use either the Expression or Percentage along with the SQL Server TOP clause. For instance, TOP 1 means it will retrieve the first record. If we write TOP 10 Percent, the SELECT …