athena_explain_join
Explains how to join two athenahealth DataView views, providing join columns, warnings, and a sample SQL snippet to prevent data loss from incorrect key usage.
Instructions
Explains how to join two athenahealth Snowflake DataView views. Returns the join columns, confidence level, known warnings (e.g. CONTEXTID requirements, multi-tenant row-level security), and a sample SQL snippet. Always call this before writing a JOIN to avoid silent data loss from incorrect key usage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceView | Yes | The starting view, e.g. "APPOINTMENT" | |
| targetView | Yes | The view to join to, e.g. "DEPARTMENT" |