Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

can i use alias in where clause

column_alias can be used in an ORDER BY clause, but it cannot be used in a WHERE, GROUP BY, or HAVING clause. Standard SQL disallows references to column aliases in a WHERE clause. This restriction is imposed because when the WHERE clause is evaluated, the column value may not yet have been determined.
 
PREVIOUS NEXT
Tagged: #alias #clause
ADD COMMENT
Topic
Name
1+9 =