Re: Get different sums from the same table in one query

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: Get different sums from the same table in one query
Дата
Msg-id 20071008105422.GC15336@a-kretschmer.de
обсуждение исходный текст
Ответ на Get different sums from the same table in one query  (Dani Castaños <danitao.mailists@gmail.com>)
Ответы Re: Get different sums from the same table in one query  ("Peter Childs" <peterachilds@gmail.com>)
Список pgsql-sql
am  Mon, dem 08.10.2007, um 12:49:04 +0200 mailte Dani Castaños folgendes:
> Hi all!
> 
> I want to put this three queries in only one... Take a look that the 
> only thing that changes is the message_type_id. Any suggestions??

Yes, no problem, You can use UNION (ALL) for such.


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net


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

Предыдущее
От: Dani Castaños
Дата:
Сообщение: Get different sums from the same table in one query
Следующее
От: "Peter Childs"
Дата:
Сообщение: Re: Get different sums from the same table in one query