The question is We want to sum the orders that are above $700.
Here is my code so far
SELECT sum(t2.amount), t1.name
FROM Salesperson t1
INNER JOIN Orders t2 ON t1.ID = t2. salesperson_id
WHERE t2.amount >= 700
However I get an error
Column "t1.name" must appear in the GROUP BY clause or aggregate function
Why is that?
