By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SIMPLE | tori | ALL | PRIMARY,link_item,receipt_header,versions | null | null | null | 17 | Using where |
| 1 | SIMPLE | torh | ALL | id | null | null | null | 5 | Using where; Using join buffer (Block Nested Loop) |
| 1 | SIMPLE | torp | ALL | null | null | null | null | 5 | Using where; Using join buffer (Block Nested Loop) |
| card | pos | shift_open | local_number | date | amount | item | quantity | receipt_header | tree | id_group |
|---|---|---|---|---|---|---|---|---|---|---|
| 229456 | 7 | 2927 | 2 | 2021-01-18 13:38:48 | 30.0000 | 307043 | 1.0000 | 649062 | 1.8.6.1. | 268 |
| 229456 | 7 | 2927 | 32 | 2021-01-18 15:29:47 | 203.6900 | ОВ000000273 | 1.7560 | 649092 | 1.8.4.9. | 320 |
| 229456 | 7 | 2928 | 1 | 2021-01-19 11:44:42 | 709.7000 | ОВ000000714 | 0.3160 | 649233 | 1.8.4.2. | 474 |
| 229456 | 7 | 2928 | 2 | 2021-01-19 13:32:27 | 626.2500 | ОВ000000714 | 0.1520 | 649234 | 1.8.4.2. | 474 |