dbTalk Databases Forums  

Retrieving data from Dim Time using another table

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Retrieving data from Dim Time using another table in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
eyalso@gmail.com
 
Posts: n/a

Default Retrieving data from Dim Time using another table - 03-23-2009 , 09:44 AM






Hi

i want to get all rows from 1 table (Dim Promotion) that has Start
Date and End Date
and retrive all rows from Dim Time that answer the condtion :
DimTime.DayKey Between (Start Date and End Date)
how can i do it in Data Flow ?


Reply With Quote
  #2  
Old   
Todd C
 
Posts: n/a

Default RE: Retrieving data from Dim Time using another table - 03-25-2009 , 06:52 AM






Can you be more specific? You want TWO result sets (one from DimPromotion and
one from DimTime) or only ONE? If one, how are the tables related? Is DimTime
linked to DimPromotion on TWO fields (StartDate and EndDate) ?

Are both tables in the same database or server? If so, can you write a T-SQL
SELECT statement that joins them? (Sometimes doing so is actually faster than
creating fancy Merge Join Transformations in an SSIS Data Flow.)

Keep us posted.

--------
Todd C

"eyalso (AT) gmail (DOT) com" wrote:

Quote:
Hi

i want to get all rows from 1 table (Dim Promotion) that has Start
Date and End Date
and retrive all rows from Dim Time that answer the condtion :
DimTime.DayKey Between (Start Date and End Date)
how can i do it in Data Flow ?



Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.