Re: Finding multiple events of the same kind

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: Finding multiple events of the same kind
Дата
Msg-id 20060611183639.19893.qmail@web31810.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Re: Finding multiple events of the same kind  ("Leif B. Kristensen" <leif@solumslekt.org>)
Ответы Re: Finding multiple events of the same kind
Список pgsql-sql
> On Sunday 11. June 2006 15:27, Frank Bax wrote:
> >SELECT participants.person_fk, count(participants.person_fk) FROM
> > events, participants
> >    WHERE events.event_id = participants.event_fk
> >         AND events.tag_fk in (2,62,1035)
> >    GROUP BY participants.person_fk HAVING
> > count(participants.person_fk) > 1
> 
> That worked like a charm! Thank you very much!
> -- 

Also,  you could create a unique column constraint that would prevent multiply instances of the
same person in the participants table.

Regards,

Richard Broersma Jr.


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

Предыдущее
От: "Leif B. Kristensen"
Дата:
Сообщение: Re: Finding multiple events of the same kind
Следующее
От: Owen Funkhouser
Дата:
Сообщение: remove