위에 제가 올린 sql이 잘못되ㅆ네요..
select o_code, sum(s_price)
from desk, chair
where a_code = 'A00001' and desk.o_code = chair.o_code;
이렇게 썼습니다.
select o_code, s_price
from desk, chair
where a_code = 'A00001' and desk.o_code = chair.o_code;
이렇게 쓰면 두개의 tuples이 생기거든요.
o_code |s_price
----------+-----------
A00001 |$100,000.00
A00001 |$200,000.00
위에서 두개의 tuples의 s_price 값을 합해서 보여주고 싶어요.