Is there a way to reference a preceding CTE in the CTE that follows in postgresql
Working in PostgreSQL, I intend to use the output of a CTE as a reference to join another CTE below it. I've used this style countless times in SQL Server and Synapse, however I'm finding it difficult to replicate in…