I want to have running date with definite rows from the column num, and datead by minutes by the mins column, and +1 increment for the row ID.
Current code
declare @table table
(
ID varchar(10),
DT datetime,
mins int,
num int
)
insert into @table
select 'PR0006',getdate(), 30, 3
select * from @table
Output
ID DT mins num
PR0006 2019-06-25 08:45:56.227 30 3
Desired output
PR0006 2019-06-25 08:45:56.227 30 3
PR0007 2019-06-25 09:15:56.227 30 3
PR0008 2019-06-25 09:45:56.227 30 3