Fix 1 of 1
Have AI write and explain the query
Describe the tables and the question; AI writes the SQL or formula and explains it. You test it on a small sample before trusting the numbers.
- 1Paste table and column names only, never the data itself or credentials.
- 2Describe the result you want in plain words.
- 3Run the query on a small date range and check a few rows by hand.
- 4Save working queries in a shared library.
I use [DATABASE: Postgres / SQL Server / BigQuery / Snowflake]. Tables: [TABLE NAME (columns)] ... I need [WHAT YOU WANT, e.g. weekly count of orders by region for the last 12 weeks, excluding cancelled]. Write the query, explain each part in one line, and list any assumptions about joins or nulls.
Tools: ChatGPT, Claude, Gemini or Microsoft Copilot · GitHub Copilot · Built-in AI in BigQuery, Snowflake or Databricks