Please some help on a join question with sum aggregate

Поиск
Список
Период
Сортировка
От Feite Brekeveld
Тема Please some help on a join question with sum aggregate
Дата
Msg-id 3EA195A7.7070800@osiris-it.nl
обсуждение исходный текст
Ответы Re: Please some help on a join question with sum  (Oliver Elphick <olly@lfix.co.uk>)
Re: Please some help on a join question with sum aggregate  (elein <elein@sbcglobal.net>)
Список pgsql-general
Hi,

I havbe the following SQL related question.

Table AA:

id, seqno, price

A10    1    1000.0

A10    2    2000.0



Table BB:


id    seqno        subseq    price

A10       1        1        10

A10       1        2        20

A10       1        3        30

A10        2        1        25


I would like to have a query that joins table AA and BB to the result:

id    seqno    price
A10    1        1060
A10    2        2025

Thanks,

Feite Brekeveld


В списке pgsql-general по дате отправления:

Предыдущее
От: Manfred Koizar
Дата:
Сообщение: Re: stddev returns 0 when there is one row
Следующее
От: Oliver Elphick
Дата:
Сообщение: Re: Please some help on a join question with sum