"Unpivot" values in a column


hello:

 

i have data source need "unpivot" here's how it's stored.

 

there can multiple technicians perform work on order, there's field called "techs" , the multiples values stored in single column delimiter "tech1~tech2~tech3~tech4".

 

i'd end normalized version like

order 234, tech1

order 234, tech2

order 234, tech3

order 234, tech4

 

how in ssis or tsql?

 

thanks,

 

sam

 

todd,

 

thanks reply, don't see how applies situation. unpivot task , command seem apply when each of "tech" values held in defined number of columns.

in case, multiples values crammed single column delimiter.

am missing something?

 

thanks,

 

sam


sam,

try this: dynamic unpivot

-jamie


http://sqlblog.com/blogs/jamie_thomson/ | @jamiet | me


SQL Server  >  SQL Server Integration Services



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........