counting distinct result of join

Поиск
Список
Период
Сортировка
От Oleg Bartunov
Тема counting distinct result of join
Дата
Msg-id Pine.GSO.3.96.SK.1000404222531.13408S-100000@ra
обсуждение исходный текст
Список pgsql-sql
Hi,

are there an efficient way to count distinct result from join ?
I know it's possible in 7.0 to do 

select count(distinct m.msg_id) from messages m, message_section_map ms
where m.msg_id = ms.msg_id;

but I need it working in production for 6.5.3
I'd like not to use temp tables as I dont' have any experience
with them in production.
Regards,
    Oleg

_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83




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

Предыдущее
От: "tjk@tksoft.com"
Дата:
Сообщение: Re: Prob in installing DBD::Pg 0.93
Следующее
От: "Drozdowski, Catharine I"
Дата:
Сообщение: Foreign Key Implementation