Re: Matching several rows - Mailing list pgsql-sql

From Vraj Mohan
Subject Re: Matching several rows
Date
Msg-id dqlqos$tj0$1@sea.gmane.org
Whole thread Raw
In response to Re: Matching several rows  (Ivan Steganov <istegan6@gmail.com>)
List pgsql-sql
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
> 



pgsql-sql by date:

Previous
From: Jeff
Date:
Subject: Re: [GENERAL] bug with if ... then ... clause in views
Next
From: alex-lists-pgsql@yuriev.com
Date:
Subject: stored procedures for complex SELECTs