join_path
Find the shortest foreign-key path between two tables and get a ready-to-use JOIN chain, eliminating guesswork on unfamiliar schemas.
Instructions
Shortest foreign-key path between two tables, rendered as a ready-to-use JOIN chain (up to 3 equally short paths). Use this instead of guessing joins on unfamiliar schemas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | ||
| max_hops | No | ||
| to_table | Yes | ||
| from_table | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |