“Thinking in sql” is hard because it’s an awkward syntax for the (much simpler) relational algebra.
Learn to think in terms of the relational algebra, and how to translate that to/from SQL, and it starts making sense.
Learn to think in terms of the relational algebra, and how to translate that to/from SQL, and it starts making sense.