Feature 05 / 17
Join data across databases
Join data across databases when the answer is not in one system. TugQL joins are available in the CLI. A general browser cross-source query is in development.
Browser cross-source queriesIn development
The problem
What happens when the related data lives in another database or system?
An order may be in a relational database while a support event, a file, and an API response live elsewhere. Teams often export each side into a spreadsheet just to line up identifiers, with no durable record of how the sources fit together.
A clearer workflow
Name each source
Record where the relevant data lives and which environment or version is safe to inspect.
Match the identifiers
Write down the keys, timestamps, and transformations needed to relate the sources.
Build toward one view
Keep the cross-source question in the project so the eventual query can be reviewed and repeated.
Example investigation plan
Plan a customer investigation across systems
Starting question
How would you relate a Chinook invoice to a support event stored in another system?
Steps to follow
- Follow “Explore the demo project sources” and identify Chinook. Open Chinook Customer Invoices, enter Customer ID 1, choose Preview SQL, then Run to inspect the invoice rows.
- For a separate support source, document how its customer reference maps to Customer.CustomerId, and check timestamp formats and access.
- Collect the invoice and support evidence separately. Record missing identifiers or transformations before attempting a cross-source query.
Evidence to assemble
Evidence to assemble: a source map, a checked identifier mapping, and records from each system. This plan does not demonstrate a browser cross-source join.
Explore the demo project sourcesWhat changes
The team can see the route to an answer instead of relying on an undocumented export and manual merge.
The case of order 11045 · Act 2 · Follow
In the demo story
Order 11045 lives in Northwind, its shipping request in the Shipping database, and the carrier’s answer behind an API. The project names each source and how their identifiers match.
The guided demo of this story is being built.
