FeaturesPreserve what you learn

Feature 17 / 17

Preserve what you learn

Preserve what you learn. Save the working query and why the tables connect, in the project, so the next person does not rediscover the same join from a chat.

Shared knowledge loopExploring

The problem

Once someone understands the data, does the next person still have to rediscover it?

A good investigation uncovers more than one answer: it reveals which fields matter, which joins are safe, and which assumptions are false. If that knowledge stays in a notebook or chat thread, the next person starts from zero.

A clearer workflow

  1. Save the working query

    Give the query a name that describes the business question, not only its SQL or TugQL syntax.

  2. Explain the relationship

    Record why the tables connect and what a result does or does not mean.

  3. Review and reuse

    Keep project definitions and reusable queries in a repository so changes can be inspected alongside the work they support.

Example investigation plan

Leave a reusable customer purchase investigation

Starting question

What should a teammate know before reusing the customer invoice query?

Steps to follow

  1. Browse the public project’s shared queries, open the demodb folder, and select Chinook Customer Invoices.
  2. Enter Customer ID 1, choose Preview SQL, then Run and inspect the invoice rows. Check the declared relationship so you can explain why Customer.CustomerId joins to Invoice.CustomerId.
  3. Prepare a project note describing the customer filter, the source environment, and the Invoice.InvoiceId → InvoiceLine.InvoiceId follow-up.

Evidence to assemble

Evidence to assemble: a reusable query and an explanation of its assumptions and next steps. Shared query browsing is available today; this is not a demonstration of the shared knowledge loop.

Browse the shared query library

What changes

A one-off discovery becomes a starting point for teammates, future incidents, and new questions.

In the demo story

A week later order 11062 is stuck the same way. Sarah finds the saved investigation for 11045 and handles it herself.

The guided demo of this story is being built.