problematic query (for me ;-) - Mailing list pgsql-sql

From Kim Petersen
Subject problematic query (for me ;-)
Date
Msg-id 3E660A41.7040509@kyborg.dk
Whole thread Raw
List pgsql-sql
I'm trying to get a hint as to how i can solve this problem:

i have a table:
 n | t
---+--- 1 | 2 1 | 5 2 | 3 2 | 5 3 | 4 3 | 3
(6 rows)

now i want to find the pairs (n1,n2) where no t's collide - eg in this 
table it would be (1,3) and (3,1).

Note - this is not homework ;-)

what i'm actually trying to do is to extract n=(countyid,roadid) 
t=housenumber - and find out which roads that *cannot* cross county 
border because their housenumbers collide (to this i've already narrowed 
the n's depending on roadname).



pgsql-sql by date:

Previous
From: Björn Lundin
Date:
Subject: Re: Beginner needs help
Next
From: "Bjarke Dahl Ebert"
Date:
Subject: Re: problematic query (for me ;-)