WHERE age = AVG(age);
WHERE age;
WHERE AVG();
Bingo. We have to pass a parameter to our function, so it knows what values to calculate with! Clauses don't accept aggregate functions.
Nope. We have to pass a parameter to our function, so it knows what values to calculate with! Clauses don't accept aggregate functions.