Guide

Use query comments to keep SQL decisions attached to the logic.

A shared query is only useful if the team still understands the decisions around it. DataPilot query comments help teams keep edge cases, approvals, assumptions, and handoff notes next to the SQL instead of scattering them across chat and tickets.

Capture why the query changed

Use comments for review notes, business assumptions, exception handling, and questions that would otherwise disappear after the edit.

Keep comments close to versions

When a query evolves, comments still make sense because they live next to version history instead of in disconnected documents.

FAQ

What are SQL query comments good for?

They keep decisions, approvals, caveats, and review context attached to the SQL instead of sending that knowledge into chat threads and tickets.

Do comments stay visible next to version history?

Yes. Comments stay close to the same query history, so the reasoning behind a change is easier to interpret later.

Can commented queries still be reused in scheduled delivery?

Yes. Comment context still matters when the same trusted query becomes a recurring report or export.