Re: SQL Question - Mailing list pgsql-novice

From Francisco Reyes
Subject Re: SQL Question
Date
Msg-id 20011110151635.F37050-100000@zoraida.natserv.net
Whole thread Raw
In response to SQL Question  (Brian <Brrrian@Excite.com>)
List pgsql-novice
On Sat, 10 Nov 2001, Brian wrote:

>
> I am trying to query table1, selecting records that do NOT have a relation in a subset from table3 that is related to
table2.

I tried, but couldn't figure it out.

I think the solutions is along these lines:
-Make a query which will return the combination of all names and tricks.
Something like "select tricks.trick, names,name from tricks,names;"
-Store the result of the query above into a table
-Do an outer join of tricks and the "complete" table for the instances
where the name is null.


pgsql-novice by date:

Previous
From: Francisco Reyes
Date:
Subject: Re: Query very slow
Next
From: "Brett W. McCoy"
Date:
Subject: Re: Sending query to a file