Tips and Traps¶
TABLESAMPLE
must be immedidately after a table name.The
WHERE
clause in the following SQL query runs afterTABLESAMPLE
.SELECT * FROM table_name TABLESAMPLE (10 PERCENT) WHERE id = 1
If 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