Just finished an SQL query that kept me busy for a few evenings. It has a CTE with a sub-select with a join and a sub-select with a join with the CTE in the main query 😮‍💨

Comments