By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| id | postID | status | number | userID | active |
|---|---|---|---|---|---|
| 1 | 1 | 100 | 100 | 3 | 1 |
| 2 | 7 | 50 | 25 | 5 | 1 |
| 3 | 3 | 75 | 50 | 3 | 1 |
| postID | reference | joint_date | userID | remove |
|---|---|---|---|---|
| 1 | 100 | 100 | 3 | 1 |
| 2 | 50 | 25 | 5 | 1 |
| 3 | 50 | 50 | 3 | 0 |
| postID | status | number | reference | joint_date |
|---|---|---|---|---|
| 1 | 100 | 100 | 100 | 100 |
| 3 | 75 | 50 | 50 | 50 |