Im trying to run this query
select customerID, sum(OrderID)
from employee_T
where 2 < select(sum(OrderID) from employee_T)
group by customerID;
I want to list the customer id and the total number of orders placed for every customer that has more than 2 orders.
I get the syntax error on this line
where 2 < select(sum(OrderID) from employee_T)
is it because of the 2?s