Viewing 5 posts - 1 through 5 (of 5 total)
If you have longer T-SQL script with several selects, the SSIS pickups the first select which produces "a resultset". Usually, the last select is used to produce the final result....
April 15, 2019 at 4:11 pm
Please see my comments in brackets.
From what I can gather, for each entry in t, you want to have a result of t.id, and the minimum t.id where t.col =...
November 2, 2010 at 7:44 am
Yes, the mapping need to be stored in table.
Mapping Table:
Map_t_to_r
--------------------------
t_IDr_ID
1.......1
2.......2
3.......2
4.......2
5.......2
6.......2
7.......2
8.......8
(Sorry I used dots instead spaces to distinguish columns. Trailing spaces or tabs don't work in this form)
I wanted to use...
November 2, 2010 at 7:16 am
Please see my initial post:
source: table t
target: table r
operation:
insert r (id, col)
SELECT
MIN(id) AS id,
col
from t
...
November 2, 2010 at 6:58 am
Thanks SSCrazy, this is good idea. But the point is that I have one big insert where is the aggregation and group by.
I have to get that mapping into...
November 2, 2010 at 5:41 am
Viewing 5 posts - 1 through 5 (of 5 total)