add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 19  Duplicates: 0  Warnings: 0
Table Op Msg_type Msg_text
fiddle.my_table analyze status OK
id day date
1 1 null
2 2 null
3 3 null
4 4 null
5 5 null
6 6 null
7 7 null
8 3 2024-05-29
9 5 2024-05-31
10 1 2024-06-17
11 6 2024-07-27
12 6 2024-08-10
13 7 2024-08-25
14 5 2024-09-06
15 5 2024-09-27
16 7 2024-09-29
17 5 2024-10-11
18 6 2024-10-19
19 1 2024-10-21
id day date
1 1 null
2 2 null
8 3 2024-05-29
4 4 null
5 5 null
6 6 null
7 7 null
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 null ref idx_date_day idx_date_day 4 const 7 100.00 Using where; Using index
1 SIMPLE t2 null ref idx_date_day idx_date_day 5 const,fiddle.t1.day 1 100.00 Using where; Using index
id day date
1 1 null
2 2 null
8 3 2024-05-29
4 4 null
5 5 null
6 6 null
7 7 null
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 PRIMARY <derived2> null ALL null null null null 8 100.00 Using temporary; Using filesort
1 PRIMARY s1 null ref_or_null idx_date_day idx_date_day 5 s2.date_max,s2.day 2 100.00 Using where; Using index
2 DERIVED my_table null ref_or_null idx_date_day idx_date_day 4 const 8 100.00 Using where; Using index; Using temporary
id day date
1 1 null
2 2 null
8 3 2024-05-29
4 4 null
5 5 null
6 6 null
7 7 null
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 PRIMARY <derived2> null ALL null null null null 8 100.00 Using temporary; Using filesort
1 PRIMARY s1 null ref idx_date_day idx_date_day 5 s2.date_max,s2.day 1 100.00 Using where; Using index
2 DERIVED my_table null ref_or_null idx_date_day idx_date_day 4 const 8 100.00 Using where; Using index; Using temporary