By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
MECHANIC_NAME | ASSET_ID | STATE_NAME | REGISTERDATE | CLOSEDDATE |
---|---|---|---|---|
A | 1 | 已完修 | 2022-06-01 | 2022-06-02 |
B | 2 | 已完修 | 2022-06-02 | 2022-06-03 |
C | 3 | 已完修 | 2022-06-03 | 2022-06-04 |
A | 4 | 未完修 | 2022-06-04 | null |
B | 5 | 已完修 | 2022-06-05 | 2022-06-06 |
B | 6 | 未完修 | 2022-06-06 | null |
C | 7 | 已退修 | 2022-06-07 | 2022-06-08 |
C | 8 | 已退修 | 2022-06-08 | 2022-06-09 |
C | 9 | 已退修 | 2022-06-09 | 2022-06-10 |
C | 10 | 未完修 | 2022-06-10 | null |
C | 11 | 未完修 | 2022-06-11 | null |
C | 12 | 已完修 | 2022-06-12 | 2022-06-13 |
C | 13 | 已完修 | 2022-06-13 | 2022-06-19 |
C | 14 | 已完修 | 2022-06-14 | 2022-07-11 |
D | 15 | 已完修 | 2022-06-15 | 2022-07-12 |
ASSET_ID | HAVEWARRANTY | BRAND_NAME |
---|---|---|
1 | 1 | brother |
2 | 0 | NCC |
3 | 1 | X |
4 | 0 | Y |
5 | 1 | Y |
6 | 0 | Z |
7 | 1 | Z |
8 | 0 | Z |
9 | 1 | Z |
10 | 1 | null |
11 | 0 | null |
12 | 0 | null |
13 | 1 | brother |
14 | 0 | NCC |
PART NO | MECHANIC_NAME | ASSET_ID | STATE_NAME | REGISTERDATE | CLOSEDDATE | ASSET_ID | HAVEWARRANTY | BRAND_NAME | DAY_TEMP |
---|---|---|---|---|---|---|---|---|---|
1 | A | 1 | 已完修 | 2022-06-01 | 2022-06-02 | 1 | 1 | brother | 1 |
2 | A | 4 | 未完修 | 2022-06-04 | null | 4 | 0 | Y | 0 |
1 | B | 2 | 已完修 | 2022-06-02 | 2022-06-03 | 2 | 0 | NCC | 1 |
2 | B | 5 | 已完修 | 2022-06-05 | 2022-06-06 | 5 | 1 | Y | 1 |
3 | B | 6 | 未完修 | 2022-06-06 | null | 6 | 0 | Z | 0 |
1 | C | 10 | 未完修 | 2022-06-10 | null | 10 | 1 | null | 0 |
2 | C | 11 | 未完修 | 2022-06-11 | null | 11 | 0 | null | 0 |
3 | C | 12 | 已完修 | 2022-06-12 | 2022-06-13 | 12 | 0 | null | 1 |
4 | C | 13 | 已完修 | 2022-06-13 | 2022-06-19 | 13 | 1 | brother | 0 |
5 | C | 14 | 已完修 | 2022-06-14 | 2022-07-11 | 14 | 0 | NCC | 0 |
6 | C | 3 | 已完修 | 2022-06-03 | 2022-06-04 | 3 | 1 | X | 1 |
7 | C | 7 | 已退修 | 2022-06-07 | 2022-06-08 | 7 | 1 | Z | 1 |
8 | C | 8 | 已退修 | 2022-06-08 | 2022-06-09 | 8 | 0 | Z | 1 |
9 | C | 9 | 已退修 | 2022-06-09 | 2022-06-10 | 9 | 1 | Z | 1 |
維修人員 | 接單數 | 保固內 | 保固外 | 已完修 | 已退修 | 它牌 | 它牌(不含 NULL)) | 完成率 | 達成數 | 達成率 |
---|---|---|---|---|---|---|---|---|---|---|
A | 2 | 1 | 1 | 1 | 0 | 1 | 1 | 50.00% | 1 | 50.00% |
B | 3 | 1 | 2 | 2 | 0 | 2 | 2 | 66.67% | 2 | 66.67% |
C | 9 | 5 | 4 | 4 | 3 | 7 | 4 | 77.78% | 5 | 55.56% |