By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
trip_num | add_id | add_type | value |
---|---|---|---|
TRP0001 | UM1 | type 1 | 50 |
TRP0001 | UM2 | type 1 | 27 |
TRP0001 | UB1 | type 2 | 250 |
TRP0002 | UM1 | type 1 | 32 |
TRP0002 | UB1 | type 2 | 300 |
TRP0002 | UB2 | type 2 | 120 |
TRP0002 | UL1 | type 3 | 120 |