Much of the ORM market and NoSQL were precisely because programmers don't understand SQL.
I use SQL extensively, and never run into all these problems other people run into.
I also don't use ORM. there's so much you can do well and fast with SQL.
(I've also seen dreadful abominations in sql, like stored procedures that dynamically generate code for pivot tables... wait, that was me who did that)
That's very simple, if you know SQL.
I think