Prompts Forms Resume Reports ★ Saved ★ Saved★ + Submit a tool

If the metric definition is not confirmed, is writing SQL a waste of time?

When the business team gives a data request verbally, confirm the metric definition before you start; otherwise nobody will accept the numbers. After confirming, deliver runnable SQL plus a definition note so the other side can reuse it. The deliverables are two things, the SQL file and the definition note; if either is missing, the job is not done.

Step-by-step flow Software and engineering ✍️ Writing Time: About 2 hours Cost: Free 5 steps
1
Paste in the business team's exact words and have it ask for missing information: time range, deduplication definition, dimensions, and filters; clarify before writing.
Cost: Free
Alternatives: Kimi Moonshot AI · Qwen
2
Run it on sample data first to check whether the definition is right, for example how much difference there is between deduplicating by day and by order; then run it on the production database.
Cost: Free to start
Alternatives: WPS AI · Feishu
3
Give it the table schema and the confirmed definition, generate SQL, require comments explaining why each join is written that way, and limit the time range.
Cost: Subscription
Alternatives: Github Copilot · Qwen Lingma
4
Paste the SQL back and have it self-check: Cartesian products, null handling, time zone issues, list each one.
Cost: Free
Alternatives: DeepSeek · Zhipu
5
Create a data request note that clearly states the metric definition, SQL, query time, and known deviations, so next time a similar request only needs parameter changes.
Cost: Free to start
Alternatives: Shimo Docs AI · Feishu
Common pitfalls Running the query before confirming the definition gets the numbers rejected
Joining multiple tables without a time limit scans full tables and drags down the database
Missing deduplication logic double-counts amounts
Delivering only SQL without the note means they have to ask again next time

More playbooks

All playbooks
Checklist Time: About 1 day On a price schedule, do I submit as soon as it's calculated or check it three times before stamping? The line items, tax rate, freight and total must all add up. First check whether tax-inclusive and tax-exclusive prices are mixed in the sheet, then cross-check, and deliver a price schedule you can stamp and submit. Manufacturing and export Decision guide Time: About 1 day On a technical deviation table, should I mark everything as no deviation or state each item honestly? If acceptance fails after you win, it's usually because the deviation table promised too much. Compare the tender's technical parameters with your product line by line, mark positive deviation, negative deviation or no deviation honestly, and first define which negative deviations are acceptable. Manufacturing and export Checklist Time: About half a day For a qualification compliance table, do I fill in the evidence first or check the commitment letters first? Fill in your own evidence and page numbers after each row so gaps are obvious at a glance. First check which clauses allow a commitment letter in place of supporting documents, then finalize the evidence list. Deliverable: one qualification compliance table you can hand straight to the bid team. Manufacturing and export Step-by-step flow Time: About 2 days For a new warehouse SOP, should I make a flowchart or a screenshot-based course? The SOP is only really done when a new hire can go through the course and start working. Cover the five steps - receiving, putaway, picking, checking and shipping - each with screenshots, and state in each step what counts as done right. Deliverable: one training course you can teach straight from. Logistics and supply chain