For Example,
TABLESAMPLE(10 PERCENT) // Returns a sample 10 percent of the rows of the result set.
TABLESAMPLE(20 ROWS) // Returns a sample of 20 rows from the result set
Syntax:
TABLESAMPLE (sample_number[PERCENT | ROWS]).
Eg:
SELECT FIRST_NAME, LAST_NAME FROM M_USER TABLESAMPLE(10 PERCENT).
The above query returns approximately 10 percent of total rows present in that table. The number of rows returned usually changes every time that the statement is executed.
Eg:
SELECT FIRST_NAME, LAST_NAME FROM M_USER TABLESAMPLE(100 ROWS).
This query returns approximately 100 rows.