I can\'t figure out why i am getting an unknown column when the column is an alias that was created. Any help would be great.
code:
SELECT DISTINCT
You can use aliases in the order by clause, but you can't use aliases in the where or group by clause. Either you repeat the expression or you can use a subquery.