Wednesday, 30 March 2011

SQL TOP clause

TOP clause is used to specify the number of records to return. Usually used for large tables.

Syntax:SELECT TOP number|percent column_name(s) FROM table_name

Example:SELECT TOP 2 * from employee

No comments:

Post a Comment