This is my code:
SELECT s_num, SUM(qty)
FROM S,SPJ
WHERE S.s_num=SPJ.s_num1
GROUP BY s_num
HAVING SUM(qty)>1000;
but I have
syntax error: unexpected "WHERE" (where)
Please help me!
This is my code:
SELECT s_num, SUM(qty)
FROM S,SPJ
WHERE S.s_num=SPJ.s_num1
GROUP BY s_num
HAVING SUM(qty)>1000;
but I have
syntax error: unexpected "WHERE" (where)
Please help me!