It is more like reading colums from the same row of a source table and inserting one row for each matching column..in other words converting from columns to rows but the key should be the same for all the columns of the same row from the source
example:
Source:
row1: PRD_1 PRD_2 PRD_3 PRD_4 PRD_5
row2: PDS SSS NULL NULL NULL
I'm assigning a surrogate key (example: 2000001) in the target table
O/P SHOULD BE: FROM THE FIRST ROW OF SOURCE
2000001 PRD_1
2000001 PRD_2
2000001 PRD_3
2000001 PRD_4
2000001 PRD_5
2000002 PDS
2000002 SSS
↧