By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 21
| pct_sent_in_time |
|---|
| 33.33 |
SELECT 1
| user_id | pct_sent_in_time |
|---|---|
| 22 | 33.33 |
| 23 | 100.00 |
SELECT 2
| user_id | logins | sent | pct_sent |
|---|---|---|---|
| 22 | 6 | 5 | 83.3333333333333333 |
| 23 | 2 | 2 | 100.0000000000000000 |
SELECT 2