By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
CREATE TABLE
INSERT 0 2
INSERT 0 8
| name | id | group_member_id | parent_id | created_at | last_reply_at |
|---|---|---|---|---|---|
| Johnny Tables | 2 | 2 | null | 2023-08-01 12:00:01 | 2023-08-01 12:00:07 |
| Johnny Tables | 1 | 1 | null | 2023-08-01 12:00:00 | 2023-08-01 12:00:05 |
| Johnny Tables | 3 | 2 | null | 2023-08-01 12:00:02 | 2023-08-01 12:00:03 |
| Susan Select | 2 | 2 | null | 2023-08-01 12:00:01 | 2023-08-01 12:00:06 |
SELECT 4