SQL Fundamentals — Hard
Key points
- TABLESAMPLE clause in SQL:2003 provides random sampling of table rows
- SYSTEM and BERNOULLI are the two sampling methods available
- Sampling is approximate, not exact
- Avoids the need for a full table scan
Ready to go further?
Related questions
