pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vraj Mohan <vrajmohan@comcast.net>
To: pgsql-sql@postgresql.org
Subject: Re: Matching several rows
Date: Wed, 18 Jan 2006 11:35:39 -0500
Message-ID: <dqlqos$tj0$1@sea.gmane.org> (raw)
In-Reply-To: <3578f52e0601180622h5035935ch5e64c018fde16f91@mail.gmail.com>
References: <3578f52e0601172043s64561353i689350a1c5d4debb@mail.gmail.com>
	<3578f52e0601180622h5035935ch5e64c018fde16f91@mail.gmail.com>

It is easier to think of this as SET INTERSECTION which leads to:

SELECT id FROM urights WHERE right = 2
INTERSECT
SELECT id FROM urights WHERE right = 5
INTERSECT
SELECT id FROM urights WHERE right = 10

Ivan Steganov wrote:
> Thank you to everyone for the great help!
> 
> I will evaluate all methods in our query (It is actually well complexer then
> this sample) and choose the best one.
> 
> Is there any "scientific" name to this kind of "several rows match for one
> result" data selection?
> 
> Ivan
> 




view thread (9+ messages)

Message-ID: <dqlqos$tj0$1@sea.gmane.org>
Permalink:  ../dqlqos$tj0$1@sea.gmane.org/
Also on:    postgresql.org/message-id/dqlqos$tj0$1@sea.gmane.org

 · 

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: vrajmohan@comcast.net
  Subject: Re: Matching several rows
  In-Reply-To: <dqlqos$tj0$1@sea.gmane.org>

* 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