For aggregation functions sum/avg/..., the sequenced aggregation without group-by should return NULL for empty snapshots. However, it returns 0 as long as there is a non-empty snapshot that is before the temporal snapshot in temporal order. For instance,
SELECT *
FROM (SEQUENCED TEMPORAL (
SELECT sum(salary) AS x
FROM ttest WITH TIME (FROM_DATE, TO_DATE))) a
ORDER BY T_B;
For aggregation functions sum/avg/..., the sequenced aggregation without group-by should return
NULL
for empty snapshots. However, it returns0
as long as there is a non-empty snapshot that is before the temporal snapshot in temporal order. For instance,