Hi Dieter,
We are trying to find the missing dates from the source table with the sys calendar date.
the query is like below.
SEL
NAME
, MEASURE,
DATE
,
SUM
(MEASURE) OVER(PARTITION
BY
NAME
ORDER
BY
DATE
ASC
ROWS
UNBOUNDED PRECEDING)
AS
CUM_AMT
FROM
<<TABLE_NAME>>
ORDER
BY
NAME
,
DATE
ASC
;
but this is going to product join.... is there any alternate is there for this quwery design..
because my actual source table is having 139 M records... so it will take longer time ( 5 hrs)..
Regards,
Ramaiah
Hi Dieter,
We are trying to find the missing dates from the source table with the sys calendar date.
the query is like below.
SEL
NAME
, MEASURE,
DATE
,
SUM
(MEASURE) OVER(PARTITION
BY
NAME
ORDER
BY
DATE
ASC
ROWS
UNBOUNDED PRECEDING)
AS
CUM_AMT
FROM
<<TABLE_NAME>>
ORDER
BY
NAME
,
DATE
ASC
;
but this is going to product join.... is there any alternate is there for this quwery design..
because my actual source table is having 139 M records... so it will take longer time ( 5 hrs)..
Regards,
Ramaiah