Learn How to Use AI for SQL
Use AI chat assistants as a SQL partner: write prompts with the right context, iterate on the answers, and verify, explain and fix the queries they draft on a real PostgreSQL database, while keeping data safe and using AI responsibly.
- Intermediate level
- 3 modules
- 13 lessons
- 48 tasks and questions
Syllabus
01Prompting for SQLLearn what AI chat assistants are good at in SQL work, how to give them the context they need, how to describe your tables, and how to steer a conversation toward a correct query.5 lessons
02Verify, Explain and DebugUse assistants to explain and debug queries without taking their word for it: test explanations, decode error messages, catch invented columns and wrong SQL dialects, and check results with independent queries.4 lessons
03Use AI ResponsiblyProtect data and databases when working with assistants, think through ownership, bias and honesty, then audit a full set of AI-drafted report queries.4 lessons