blob: 5a8ef4b4860a74c26ef3e07b4cb1950d609b360e [file] [log] [blame]
-- Arithmetic operation with two window functions
-- CAST function on top of windowed aggregate
select
c_date,
c_time,
c_integer,
cast(count(*) over (partition by c_date ORDER BY c_time) as bigint) + cast(sum(c_integer) OVER (partition by c_bigint order by c_time) as bigint)
from
j6
where
c_integer is not null;