add remove split 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.
CREATE TABLE
INSERT 0 14
rn date id product sum_cost
1 AUG-23 1 Keypad 50
1 AUG-23 1 Laptop 100
1 AUG-23 1 Phone 80
2 AUG-23 2 Keypad 70
2 AUG-23 2 Laptop 100
2 AUG-23 2 Phone 90
3 SEP-23 1 Ipad 150
3 SEP-23 1 Keypad 80
3 SEP-23 1 Laptop 200
3 SEP-23 1 Phone 100
4 SEP-23 2 Ipad 80
4 SEP-23 2 Keypad 40
4 SEP-23 2 Laptop 120
4 SEP-23 2 Phone 30
SELECT 14
date id Ipad Keypad Laptop Phone
AUG-23 1 null 50 100 80
AUG-23 2 null 70 100 90
SEP-23 1 150 80 200 100
SEP-23 2 80 40 120 30
SELECT 4
date id Ipad Keypad Laptop Phone
AUG-23 1 null 50 100 80
AUG-23 2 null 70 100 90
SEP-23 1 150 80 200 100
SEP-23 2 80 40 120 30
SELECT 4