Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Transposed multiple rows into one column and one row - response (9) by KS42982

$
0
0
One thing I forgot to mention above. In my query, field called 'rnk' of MYDB.MYTB is the ranked column by columname values. It happens before the recursive query starts. Like below - INSERT INTO MYDB.MYTB SELECT columnname ,RANK () OVER (ORDER BY columnid) rnk FROM MYDB2.MYTB2 ;      

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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