I have written down this query in postgres sql with column alias it is working fine:
select email as e from users
It displays me result under e
column alias but when I fire where
condition with e
then it shows this error:
select email as e from users where e = 'jaskaransingh@demo.com'
ERROR: column "e" does not exist
Why so? How we can use alias in where condition?