Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> select a group from a group

select a group from a group

From: edgar <edgarpop_at_yahoo.com>
Date: 24 Sep 2001 07:07:56 -0700
Message-ID: <a135a6b.0109240607.267c879e@posting.google.com>


Hi,
I need your help in solving this problem:

we have the following tables:
 property(propertyID(number), propertyName(number))  articleProperty(articleID(number), propertyID(number))  locationProperty(locationID(number), propertyID(number)) as U may guess in last tables propertyID refences propertyID in first table.

having one articleID, find all locations that have at least the same properties as that article. (at least means locations _must_ have articles's prop but can have other props also)

my best guess is:
select distinct l.locationid from locationproperty l where
(select propertyid from articleproperty where articleid=1) in
(select propertyid from locationproperty where
locationid=l.locationid)

of course this dose not work.

thanks Received on Mon Sep 24 2001 - 09:07:56 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US