New count() question

Поиск
Список
Период
Сортировка
От Mitch Vincent
Тема New count() question
Дата
Msg-id 014d01bf4a4e$a41e0ac0$0300000a@doot.org
обсуждение исходный текст
Ответ на Re: [SQL] count() question  (Oleg Bartunov <oleg@sai.msu.su>)
Ответы Re: [SQL] New count() question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Ok, so it's two queries. I have another intersting problem though.. Example
of one of my count queries :

select count (*) as total from applicants as a,applicants_states as
s,resume_search as re where a.app_id=s.app_id and a.app_id=re.app_id and
re.user_id=291

That's all well and fine except that it only counts the total from the
applicants table, not the total from the rest of the query.

I know I'm just not doing something right (obviously), can someone lend a
hand?

I've played with grouping but can't seem to get the syntax all right.

Thanks (again)!

-Mitch





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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: [SQL] count() question
Следующее
От: "Alain TESIO"
Дата:
Сообщение: Re: [SQL] group by / having