Postgresql – Using a aliased column in the JOIN predicate
I have the following tables: customers table: name email saqib [email protected] scott [email protected] amy [email protected] account_description table: account_type description 13 personal 14 corporate Is there way to re-write the following query without CTE or subquery? with cte_customers as ( select…