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.
CREATE TABLE
INSERT 0 9
id account category sub_category date jsondata location Phone
1 1 0 1 2025-05-01 08:00:00 {"value1": "test", "value2": "test"} null null
9 1 0 0 2025-05-01 09:00:00 {"Phone": "B", "location": "A"} A B
2 1 0 0 2025-05-01 09:00:00 {"Phone": "B", "location": "A"} A B
9 1 0 0 2025-05-01 09:00:00 {"Phone": "B", "location": "A"} A B
2 1 0 0 2025-05-01 09:00:00 {"Phone": "B", "location": "A"} A B
3 1 0 1 2025-05-01 09:05:00 {"value1": "test", "value2": "test"} A B
3 1 0 1 2025-05-01 09:05:00 {"value1": "test", "value2": "test"} A B
4 1 0 1 2025-05-03 09:06:00 {"value1": "test", "value2": "test"} A B
4 1 0 1 2025-05-03 09:06:00 {"value1": "test", "value2": "test"} A B
5 1 0 0 2025-05-04 10:00:00 {"Phone": "C", "location": "A"} A C
6 1 0 1 2025-05-04 10:15:00 {"value1": "test", "value2": "test"} A C
8 2 0 0 2025-05-02 10:00:00 {"Phone": "C", "location": "B"} B C
7 2 0 1 2025-05-03 09:30:00 {"value1": "test", "value2": "test"} B C
SELECT 13
id account category sub_category date jsondata location phone
1 1 0 1 2025-05-01 08:00:00 {"value1": "test", "value2": "test"} null null
2 1 0 0 2025-05-01 09:00:00 {"Phone": "B", "location": "A"} A B
9 1 0 0 2025-05-01 09:00:00 {"Phone": "B", "location": "A"} A B
3 1 0 1 2025-05-01 09:05:00 {"value1": "test", "value2": "test"} A B
4 1 0 1 2025-05-03 09:06:00 {"value1": "test", "value2": "test"} A B
5 1 0 0 2025-05-04 10:00:00 {"Phone": "C", "location": "A"} A C
6 1 0 1 2025-05-04 10:15:00 {"value1": "test", "value2": "test"} A C
8 2 0 0 2025-05-02 10:00:00 {"Phone": "C", "location": "B"} B C
7 2 0 1 2025-05-03 09:30:00 {"value1": "test", "value2": "test"} B C
SELECT 9
id account category sub_category date jsondata location phone
1 1 0 1 2025-05-01 08:00:00 {"value1": "test", "value2": "test"} null null
2 1 0 0 2025-05-01 09:00:00 {"Phone": "B", "location": "A"} A B
3 1 0 1 2025-05-01 09:05:00 {"value1": "test", "value2": "test"} A B
4 1 0 1 2025-05-03 09:06:00 {"value1": "test", "value2": "test"} A B
5 1 0 0 2025-05-04 10:00:00 {"Phone": "C", "location": "A"} A C
6 1 0 1 2025-05-04 10:15:00 {"value1": "test", "value2": "test"} A C
7 2 0 1 2025-05-03 09:30:00 {"value1": "test", "value2": "test"} A C
8 2 0 0 2025-05-02 10:00:00 {"Phone": "C", "location": "B"} B C
9 1 0 0 2025-05-01 09:00:00 {"Phone": "B", "location": "A"} A B
SELECT 9