I'm trying to use an SQL alias within a left join. While using the alias in the join, I get the error 'unknown a_alias column in on clause' Could anyone point me in the right direction?
SELECT a as a_alias FROM table_a LEFT JOIN table_b ON a_alias = b
Cheers