How to Review AI-Generated SQL Before You Trust the Number
AI-written SQL usually runs, and running is not the same as right. Five checks that catch the wrong number: join fan-out, NULL in the filter, WHERE vs HAVING, the denominator, and the read-back.