Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Tearadata SQL Help - Very much Urgent - response (4) by reddy27

$
0
0
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  

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>