TOP Clause | SQL SELECT Statements | Teradata Vantage - 17.05 - TOP Clause - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Manipulation Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Release Date
January 2021
Content Type
Programming Reference
Publication ID
B035-1146-175K
Language
English (United States)

Specifies that either an explicit number of rows or an explicit percentage of rows is to be returned from the query result set.

ANSI Compliance

TOP n is a Teradata extension to the ANSI SQL:2011 standard.

Other SQL dialects use similar operators with names such as:
  • FIRST n
  • LIMIT n
  • SET ROWCOUNT n
  • STOP AFTER n