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

Home -> Community -> Usenet -> c.d.o.server -> Re: Complex join problem with lookup table - need Help

Re: Complex join problem with lookup table - need Help

From: fd <asd_at_sds.com>
Date: 3 Apr 2002 05:37:06 -0600
Message-ID: <3caae8ae$0$2125$45beb828@newscene.com>


>>
>> Doing
>>
>> select * from emergency_role a, emergency_role b where
>> a.Emergency_sq = b. emergency_position_seq_number
>
>Where is the fact table?

it should read

select * from emergency_role a, emergency_responder b where
>> a.Emergency_sq = b. emergency_position_seq_number

>> when I do
>>
>> select * from emergency_role a, emergency_role b where
>> a.Emergency_sq = b.emergency_position_seq_number
>> and
>> a.Emergency_sq = b.alternate_position_seq_number
>
>Where is the fact table?

it should read

select * from emergency_role a, emergency_responder b where
>> a.Emergency_sq = b. emergency_position_seq_number

>> What is the proper way to do this join?
>
>I'm assuming you didn't cut and paste?
>
>select lkp1.descriptive_fld1, lkp2.descriptive_fld1
>from lkp1, lkp2, fact
>where fact.id1 = lkp1.id1
>and fact.id2 = lkp2.id1
>

Thnaks but we only have one dimension table lkp1 not 2, can it be done with just one? Received on Wed Apr 03 2002 - 05:37:06 CST

Original text of this message

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