{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3.40"
},
"nested_loop": [
{
"table": {
"table_name": "sb",
"access_type": "ALL",
"possible_keys": [
"idx_seat_event"
],
"rows_examined_per_scan": 4,
"rows_produced_per_join": 1,
"filtered": "33.33",
"cost_info": {
"read_cost": "1.53",
"eval_cost": "0.27",
"prefix_cost": "1.80",
"data_read_per_join": "405"
},
"used_columns": [
"booking_id",
"seat_id",
"status"
],
"attached_condition": "(`pankajecarter_setup3`.`sb`.`status` = 'confirmed')"
}
},
{
"table": {
"table_name": "s",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"idx_layout_category"
],
"key": "PRIMARY",
"used_key_parts": [
"seat_id"
],
"key_length": "4",
"ref": [
"pankajecarter_setup3.sb.seat_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "20.00",
"cost_info": {
"read_cost": "1.33",
"eval_cost": "0.05",
"prefix_cost": "3.40",
"data_read_per_join": "64"
},
"used_columns": [
"seat_id",
"layout_id"
],
"attached_condition": "(`pankajecarter_setup3`.`s`.`layout_id` = 3)"
}
}
]
}
}
| COUNT(DISTINCT sb.booking_id) |
|---|
| 0 |