sql_count_and_sample
Retrieve row count and a data sample from a table to understand what data exists without executing a full query.
Instructions
Get the row count and a sample of rows from a table. Useful for quickly understanding what data exists without writing a full query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name | |
| where | No | Optional WHERE clause to filter (e.g. 'Status = 1') | |
| sampleSize | No | Number of sample rows to show (default: 10) |