Is that possible to simplify:
SELECT GREATEST(a,b)
FROM my_table
WHERE GREATEST(a,b) > 25
to something like:
SELECT GREATEST(a,b) AS max_a_b
FROM my_table
WHERE max_a_b > 25
This try returns:
Unknown column 'max_a_b' in 'where clause'
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
At where level your alias doesn’t exist while it exists if you use having clause.