If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Join Query - Urgent!!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-25-11, 07:51
Sajeev Sajeev is offline
Registered User
 
Join Date: Aug 2011
Posts: 10
Join Query - Urgent!!!

Lookup into DIM_MERCHANDISING table with the MERCHANDISING_ID and fetch the corresponding DEPT_NUMBER and then lookup into the DIM_SEGMENT table with SEGMENT_NUM = DEPT_NUMBER and retrieve the SEGMENT_ID
need join qyery for the above transformation..

input table = fact_sales
input column=MERCHANDISING_ID from fact_sales
Reply With Quote
  #2 (permalink)  
Old 08-25-11, 10:03
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
How about supplying the DDL for the tables and what you want the query to return?

Andy
Reply With Quote
  #3 (permalink)  
Old 08-25-11, 10:47
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Sanjeev, Do you understand that it is sort of rude to mention the word "Urgent" in a public, free forum.

It gets even worse.. It appears that you have not tried to find a solution . Rather you have posted the requirement here expecting an "Urgent" response!

Of course, you can ask newbie basic questions , as long as you have tried! An example here : Why Am I an Error with this Query?
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 08-26-11, 06:30
Sajeev Sajeev is offline
Registered User
 
Join Date: Aug 2011
Posts: 10
@sathyaram

Urgent does not means dat i dint try it. I tried it but i dint end up with the required solution.Anyways thanks for your suggestion..
Reply With Quote
  #5 (permalink)  
Old 08-26-11, 06:41
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
so, can you publish what already has been done as query/join, so we can build on top of this - or correct something ..
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
Reply

Tags
join

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On