Query time 0.00094
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "27.20"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "16.00"
},
"nested_loop": [
{
"table": {
"table_name": "a",
"access_type": "ref",
"possible_keys": [
"cs",
"country_code"
],
"key": "country_code",
"used_key_parts": [
"country_code"
],
"key_length": "8",
"ref": [
"const"
],
"rows_examined_per_scan": 16,
"rows_produced_per_join": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.00",
"eval_cost": "1.60",
"prefix_cost": "5.60",
"data_read_per_join": "1K"
},
"used_columns": [
"state_id",
"country_code",
"code"
]
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"state_id",
"lang_code"
],
"key_length": "9",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.a.state_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.00",
"eval_cost": "1.60",
"prefix_cost": "11.20",
"data_read_per_join": "12K"
},
"used_columns": [
"state_id",
"lang_code",
"state"
]
}
}
]
}
}
}
Result
| code |
state |
| AN |
Anbar |
| BB |
Babil |
| BA |
Baghdad |
| BS |
Basra |
| DQ |
Dhi Qar |
| DW |
Diwaniyah |
| DI |
Diyala |
| DU |
Duhok |
| ER |
Erbil |
| HA |
Halabja |
| KA |
Karbala |
| KI |
Kirkuk |
| MS |
Misan |
| MO |
Mosul |
| MU |
Muthanna |
| NA |
Najaf |
| SA |
Saladin |
| SU |
Sulaimani |
| WA |
Wasit |