Tips and Traps¶
TABLESAMPLEmust be immedidately after a table name.The
WHEREclause in the following SQL query runs afterTABLESAMPLE.SELECT * FROM table_name TABLESAMPLE (10 PERCENT) WHERE id = 1If you want to run a
WHERE
TABLESAMPLE must be immedidately after a table name.
The WHERE clause in the following SQL query runs after TABLESAMPLE.
SELECT
*
FROM
table_name
TABLESAMPLE (10 PERCENT)
WHERE
id = 1
If you want to run a WHERE