[0]: Like https://www.oreilly.com/library/view/sql-queries-for/9780134...
[0]: Like https://www.oreilly.com/library/view/sql-queries-for/9780134...
Unfortunately I am very good at forgetting things I resented having to learn, and SQL is definitively one of them.
But if you ever need to query unknown data, then probably you should learn SQL a bit deeper.
An eight-join query is going to be nigh on unmaintainable should the requirements change, leading to a change-break-change-break spiral as your preferred coding agent tries to fix its previous fixes.
Maybe the wise way to use AI would be to sort out the schema.
A highly normalized DB can easily end up with 8 joins required for some function. That's really not out of the question. "Sorting out" the schema then would be... denormalization, which is a thing, but you need to know why you're doing it. And I think 8 joins isn't enough of a reason.
I think you may be describing the experience of 6-12 months ago.
I'd rather get it from the LLM and review