How AI Writes SQL for You — and When Not to Trust It
Towards AI
•
Generative AI
ChatGPT, Copilot, and Gemini can write SQL fast. Sometimes it’s brilliant. Sometimes it’s subtly wrong in ways that will ruin your numbers. Here’s how to tell the difference. SQL is the language of data. If you work anywhere near a database, you’re writing it - or you wish you could write it faster. And if you’ve tried asking ChatGPT, GitHub Copilot, or Gemini to write SQL for you, you’ve probably had that moment: wow, that actually worked. But you’ve probably also had the other moment. The query runs without errors, looks reasonable, and produces numbers that are just slightly off.