Re: Probably a newbie question - Mailing list pgsql-general

From Rob Sargent
Subject Re: Probably a newbie question
Date
Msg-id 4CC49DAD-E068-443F-896F-B78F08C99D2C@gmail.com
Whole thread Raw
In response to Re: Probably a newbie question  (Ron <ronljohnsonjr@gmail.com>)
Responses Re: Probably a newbie question
List pgsql-general


I'd look here:

SELECT
name
FROM
vendor
WHERE
bom_item.vendor_key =
(
SELECT
vendor_key
FROM
mfg_vendor_relationship
WHERE
bom_item.mfg_key = mfg_key
AND
prefered = TRUE
AND
bom_item.project_key = project_key

)


-- 
Angular momentum makes the world go ‘round.

You might get away with adding
group by vendor_key
if it turns out you’re simply getting many copies of vendor key from that inner select.
Run it alone to see.


pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: Probably a newbie question
Next
From: Melvin Davidson
Date:
Subject: Re: FW: Undelivered Mail Returned to Sender