Explain TABLESAMPLE and other random sampling approaches in SQL. When would you sample, and what are the trade-offs?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how TABLESAMPLE and other SQL techniques draw random samples, and when sampling a large table makes sense. Tests knowledge of row versus block sampling, reproducible and hash-based samples, joins on sampled data, and scaling estimates with their sampling error.