Minty
AWF VIP
- Local time
- Today, 20:45
- Joined
- Jul 26, 2013
- Messages
- 10,625
A plus one for @Mike Krailo option.
Personally, I wouldn't get into the habit of trying to reference calculated fields in the query by their alias in the query they are created in.
Other RDBMS don't let you do it, so if you ever try and use the same query structure it will fail.
I've had to convert a few of these abominations into T-SQL (SQL Server) and it's really painful.
Personally, I wouldn't get into the habit of trying to reference calculated fields in the query by their alias in the query they are created in.
Other RDBMS don't let you do it, so if you ever try and use the same query structure it will fail.
I've had to convert a few of these abominations into T-SQL (SQL Server) and it's really painful.