By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 6 Duplicates: 0 Warnings: 0
id | document_id | employee_id | user_id | order | status |
---|---|---|---|---|---|
1 | 1 | 2 | null | 0 | SIGNED |
2 | 1 | 3 | null | 1 | NOTSIGNED |
3 | 1 | 4 | null | 1 | NOTSIGNED |
4 | 2 | 3 | null | 0 | NOTSIGNED |
5 | 3 | null | 1 | 0 | SIGNED |
6 | 3 | 1 | null | 0 | NOTSIGNED |
Records: 2 Duplicates: 0 Warnings: 0
id | document_id | employee_id | user_id | order | status |
---|---|---|---|---|---|
1 | 1 | 2 | null | 0 | SIGNED |
2 | 1 | 3 | null | 1 | NOTSIGNED |
3 | 1 | 4 | null | 1 | NOTSIGNED |
4 | 2 | 3 | null | 0 | NOTSIGNED |
5 | 3 | null | 1 | 0 | SIGNED |
6 | 3 | 1 | null | 0 | NOTSIGNED |
7 | 1 | 3 | null | 2 | NOTSIGNED |
8 | 2 | 4 | null | 2 | NOTSIGNED |
id | document_id | employee_id | user_id | order | status | min_ord |
---|---|---|---|---|---|---|
2 | 1 | 3 | null | 1 | NOTSIGNED | 1 |
3 | 1 | 4 | null | 1 | NOTSIGNED | 1 |
4 | 2 | 3 | null | 0 | NOTSIGNED | 0 |
6 | 3 | 1 | null | 0 | NOTSIGNED | 0 |
7 | 1 | 3 | null | 2 | NOTSIGNED | 1 |
8 | 2 | 4 | null | 2 | NOTSIGNED | 0 |
id | document_id | employee_id | user_id | order | status | min_ord |
---|---|---|---|---|---|---|
2 | 1 | 3 | null | 1 | NOTSIGNED | 1 |
3 | 1 | 4 | null | 1 | NOTSIGNED | 1 |
4 | 2 | 3 | null | 0 | NOTSIGNED | 0 |
6 | 3 | 1 | null | 0 | NOTSIGNED | 0 |
id | document_id | employee_id | user_id | order | status | min_ord |
---|---|---|---|---|---|---|
2 | 1 | 3 | null | 1 | NOTSIGNED | 1 |
3 | 1 | 4 | null | 1 | NOTSIGNED | 1 |
4 | 2 | 3 | null | 0 | NOTSIGNED | 0 |
6 | 3 | 1 | null | 0 | NOTSIGNED | 0 |