union with count?

Поиск
Список
Период
Сортировка
От Gerardo Herzig
Тема union with count?
Дата
Msg-id 460A75ED.6070501@fmed.uba.ar
обсуждение исходный текст
Ответы Re: union with count?
Re: union with count?
Список pgsql-sql
Hi dudes, i have the following question
i have 2 tables with the same format, and i want to know if is there a 
possibility of using some sort of count(*) for achieving this result:
select a from table1 where (condition) union select a from table2 where 
(condition), count(a) group by a

The idea is having how many times (condition) is true for both tables.

Im not shure im explaining myself clearly, my english is not the best 
(as you can see ;)


Thanks!
Gerardo


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

Предыдущее
От: Richard Broersma Jr
Дата:
Сообщение: Re: Regular Expressions [progress]
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: union with count?