Simple question: How to use aliases after SELECT statement? Let's say i have query like this:
SELECT salary/12 AS sal FROM sdatabase WHERE sal > 1000 Of course it won't work because database will throw me an error. I know I can just replace sal with salary/12 like this:
WHERE salary/12 > 1000 but I think it is less readable. So is there anything I can do with it or this is just the way it's done?