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

New to Teradata - Update a table with another records in same table - response (10) by satrajitchandra

$
0
0

Solution:

 

update ggg_1 t1

   set t1.product_from = (select product_to

                            from ggg_1 t2

                           where t2.duration = t1.duration - 1)

 where t1.duration != 1;

 

 

 

 

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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