base_tableAffinity
Reveals tables that co-occur in SQL queries, exposing natural JOIN relationships and data affinity patterns. Use to find related tables or common workflows.
Instructions
Identify which tables in a database tend to co-occur together in the same SQL queries, revealing natural JOIN relationships and data affinity patterns. Use when the user asks which tables are queried together, what tables are related to a specific table, or what tables are commonly used in the same workflows. For access frequency, query counts, or per-user access statistics, use base_tableUsage instead.
Arguments: database_name - Database name table_name - Table or view name persist - If True, materializes result as a volatile table and returns table name
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| persist | No | If True, materializes result as a volatile table and returns table name | |
| table_name | Yes | Table or view name | |
| database_name | Yes | Database name |