Is you can comfortably handle joins, case whens, subqueries, unions, where's, havings, and window functions, you're solidly intermediate. I'd also maybe add extracting data from json columns.
Like the other poster hinted at, WITH helps you break up tricky queries in smaller named queries. So you don't need to have these monster large queries that takes a while to even begin to decipher.
It can absolutely help with joins. But don't limit yourself to that use case. It makes the SELECT statement more powerful and easy to read. Some DBMSs like MSSQL also support WITH in DELETE and UPDATE statements.
Once you've gotten used to using the WITH statement you'll never go back.
0
u/[deleted] Jul 20 '20
[deleted]