add remove split language show hidden hide
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
version
PostgreSQL 14.10 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-20), 64-bit
SELECT 1
CREATE TABLE
CREATE TABLE
coalesce
0
SELECT 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
date total_orders total_price taxes shipping average_order_value total_discount net_sales
2022-07-21 1 300 500 200 300.0000000000000000 5 -405
2022-07-23 1 100 100 100 100.0000000000000000 10 -110
2022-07-25 1 200 250 150 200.0000000000000000 15 -215
SELECT 3
dates
2022-07-20 00:00:00+01
2022-07-22 00:00:00+01
2022-07-24 00:00:00+01
2022-07-26 00:00:00+01
SELECT 4
created_at total_orders total_price taxes shipping average_order_value total_discount net_sales
2022-07-20 00:00:00+01 0 0 0 0 0 0 0
2022-07-21 00:00:00+01 1 300 500 200 300.0000000000000000 5 -405
2022-07-22 00:00:00+01 0 0 0 0 0 0 0
2022-07-23 00:00:00+01 1 100 100 100 100.0000000000000000 10 -110
2022-07-24 00:00:00+01 0 0 0 0 0 0 0
2022-07-25 00:00:00+01 1 200 250 150 200.0000000000000000 15 -215
2022-07-26 00:00:00+01 0 0 0 0 0 0 0
SELECT 7