Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
SQL: WHERE clause doesn't utilise alias of SELECT expression/func successfully #29983
Original comment by @gingerwizard:
Query as follows:
The WHERE clauses here uses an alias. The query complains the income_to_earnings_ratio cannot be found i.e.
This is inconsistent with our ability to use aliases in GROUP BY and ORDER BY. Repeating the expression in the WHERE works.
Original comment by @costin:
This feature is not availble because at runtime the