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

Updating 2nd row values with 1st row - forum topic by srinu_nistala

$
0
0

Hi  Dieter,
Thank You for your help.
But in the table below COL2 values need to take into consideration as 1 partition.
Can you please  help me to write the query to achieve the below expected result.
 
COL1 COL2 COL3
1 100 2,000
2 100 3,000
3 100 4,000
4 300 5,000
5 300 6,000
6 300 7,000
 
Expected result would be:
COL1 COL2 COL3
1 100 3,000
2 100 4,000
3 100 ?
4 300 6,000
5 300 7,000
6 300 ? 
 

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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