1-- use LAG(column_name, lag) OVER (PARTITION BY x ORDER BY y)2select3 id,
4 version,
5 start_date,
6lag(dss_end_date, 1) over (partitionby id orderby version) as previous_row_end_date
7 end_date
8from9table10orderby11 id,
12 version;
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content