please help me add columns in ssis -


hi friends have small doubt in ssis please tell me how solve issuse in sql server.

table:patient

pn | cpt1 |cpt2 | cpt3| modi12  | modi13  | modi22 | modi33 | mod31|modi11 1  |100   |200  |300  |       |         |g       |  k     | v    |q 2  |101   |400  |450  |  h      |   b     |        |        | m    | 

here modi13 means modfiere1 cpt3 modi12 means modifier1 cpt2 modi22 means modifier2 cpt2 modi33 means modifier3 cpt3 modi31 means modifier3 cpt1 modi11 means modifier1 cpt1 modi13 means modifier1 cpt3

based on condition need output this

       pn  |   cpt   |    modifier1    |   modifier2  | modifier3        1   |   100   |     q           |             |v        2   |   101   |                 |             |m        1   |   200   |               |  g          |        2   |   400   |     h           |             |        1   |   300   |                 |             |k        2   |   450   |     b           |             | 

i tried cpt1,cpt2,cpt3 information stored in cpt useing unpivot.but here problem how displaay corresponding modfier1 , modifier2 , modifier3 values information. select cpt ( select pn,cpt1,cpt2,cpt3 patient)main unpivot ( cpt cptvalues in (cpt1,cpt2,cpt3))sub time upto pn corresponding cpt values.

please tell me . how solve issue in ssis .

if using ssis, use multicast, map example

pn | cpt1 |modi11

to result set, of them,

pn | cpt2 |modi21 etc.

then use union task , put together.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -