Want to ask, why not behind the select, directly on the field for more than logic operation? Test is not enough, but I don't know why
CodePudding user response:
For example,Query above average wages, why can't write
Select ename, sal & gt; Avg (sal) from XXXX
CodePudding user response:
Sal & gt; Avg (sal) belongs to the condition condition, should be placed behind the where;Select standard syntax format select * from table where conditon
Select only can back with columns, column calculation, the aggregation function, assignment statements;