Query time 0.00055
JSON explain
{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"table": {
"table_name": "ab__dotd",
"access_type": "ALL",
"possible_keys": ["PRIMARY"],
"rows": 2,
"filtered": 100,
"attached_condition": "ab__dotd.use_schedule = 'Y'"
}
},
{
"table": {
"table_name": "p",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["promotion_id"],
"ref": ["pucuda_cscart.ab__dotd.promotion_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "p.`status` in ('A','H')"
}
},
{
"table": {
"table_name": "<derived2>",
"access_type": "ref",
"possible_keys": ["key0"],
"key": "key0",
"key_length": "4",
"used_key_parts": ["promotion_id"],
"ref": ["pucuda_cscart.ab__dotd.promotion_id"],
"rows": 2,
"filtered": 100,
"materialized": {
"query_block": {
"select_id": 2,
"filesort": {
"sort_key": "netting_ab__dotd_periods.promotion_id",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "netting_ab__dotd_periods",
"access_type": "ALL",
"possible_keys": ["PRIMARY"],
"rows": 1,
"filtered": 100,
"attached_condition": "netting_ab__dotd_periods.to_date >= 1743825514"
}
}
]
}
}
}
}
}
},
{
"table": {
"table_name": "<derived3>",
"access_type": "ref",
"possible_keys": ["key0"],
"key": "key0",
"key_length": "4",
"used_key_parts": ["promotion_id"],
"ref": ["pucuda_cscart.ab__dotd.promotion_id"],
"rows": 2,
"filtered": 100,
"materialized": {
"query_block": {
"select_id": 3,
"filesort": {
"sort_key": "netting_ab__dotd_periods.promotion_id",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "netting_ab__dotd_periods",
"access_type": "ALL",
"possible_keys": ["PRIMARY"],
"rows": 1,
"filtered": 100,
"attached_condition": "netting_ab__dotd_periods.to_date < 1743825514"
}
}
]
}
}
}
}
}
}
]
}
}