add remove language chart show hidden hide
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
(No column name)
Microsoft SQL Server 2019 (RTM-CU16) (KB5011644) - 15.0.4223.1 (X64)
 Apr 11 2022 16:24:07
 Copyright (C) 2019 Microsoft Corporation
 Express Edition (64-bit) on Windows Server 2019 Standard 10.0 <X64> (Build 17763: ) (Hypervisor)
5 rows affected
customer_id transaction_id transaction_date window_id
9 4 2021-03-17 1
9 5 2021-04-01 1
9 6 2021-04-12 1
9 7 2021-05-10 2
9 8 2021-06-15 3
customer_id window_start window_end window_id transaction_count
9 2021-03-17 2021-04-12 1 3
9 2021-05-10 2021-05-10 2 1
9 2021-06-15 2021-06-15 3 1
5 rows affected
customer_id transaction_id transaction_date window_id
9 4 2021-03-17 1
9 5 2021-04-01 1
9 6 2021-04-12 1
9 7 2021-05-10 2
9 8 2021-06-15 3
18 10 2021-04-01 1
18 12 2021-05-10 2
19 9 2021-03-17 1
19 11 2021-04-12 1
20 13 2021-06-15 1
customer_id window_start window_end window_id transaction_count
9 2021-03-17 2021-04-12 1 3
9 2021-05-10 2021-05-10 2 1
9 2021-06-15 2021-06-15 3 1
18 2021-04-01 2021-04-01 1 1
18 2021-05-10 2021-05-10 2 1
19 2021-03-17 2021-04-12 1 2
20 2021-06-15 2021-06-15 1 1