Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

how to select dynamic date from table1 to use in select table2

$
0
0
scenario:remote_table2 extracts from odbc connection (cloud)local_table1 is local that is always truncated and loaded with new data prior to table2.we want to compare data between local_table1 and local_table2. local_table1 can have 5 days or 30 day worth of data at any given time.how do i do this in 1 step? or best method suggestions?data flow task:select * from remote_table2 t2where t2.date_last_modified >= (select min(date) from local_table1)(then store to local_table2)I'm not specific about the datatype of date here because I'm curious how to do this in SSIS.

Viewing all articles
Browse latest Browse all 3145

Latest Images

Trending Articles



Latest Images