TOP
TOP is a keyword in SQL that is used to specify the number of records to return from a query or view. It can be particularly useful for limiting the number of rows in the result set of a query.
Example
Output
Explanation
The TOP
keyword is used to specify the number of records to return from top of the dataset. In the given example, the first 3 records from the Orders
table are returned.