pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Richard Broersma Jr <rabroersma@yahoo.com>
To: Leif B. Kristensen <leif@solumslekt.org>
To: pgsql-sql@postgresql.org
Subject: Re: Finding multiple events of the same kind
Date: Sun, 11 Jun 2006 11:36:39 -0700 (PDT)
Message-ID: <20060611183639.19893.qmail@web31810.mail.mud.yahoo.com> (raw)
In-Reply-To: <200606111534.17393.leif@solumslekt.org>
> 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.
view thread (6+ messages) latest in thread
Message-ID: <20060611183639.19893.qmail@web31810.mail.mud.yahoo.com> Permalink: ../20060611183639.19893.qmail@web31810.mail.mud.yahoo.com/ Also on: postgresql.org/message-id/20060611183639.19893.qmail@web31810.mail.mud.yahoo.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients using the --to and --cc options: reply via email To: pgsql-sql@postgresql.org Cc: rabroersma@yahoo.com, leif@solumslekt.org Subject: Re: Finding multiple events of the same kind In-Reply-To: <20060611183639.19893.qmail@web31810.mail.mud.yahoo.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox