Query time 0.01845
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "68.61"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "35.00"
},
"nested_loop": [
{
"table": {
"table_name": "a",
"access_type": "ref",
"possible_keys": [
"cs",
"country_code"
],
"key": "cs",
"used_key_parts": [
"country_code"
],
"key_length": "8",
"ref": [
"const"
],
"rows_examined_per_scan": 35,
"rows_produced_per_join": 35,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.36",
"eval_cost": "3.50",
"prefix_cost": "3.86",
"data_read_per_join": "3K"
},
"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": [
"aerokidsshop.a.state_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 35,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.25",
"eval_cost": "3.50",
"prefix_cost": "33.61",
"data_read_per_join": "26K"
},
"used_columns": [
"state_id",
"lang_code",
"state"
]
}
}
]
}
}
}
Result
| code |
state |
| IN-AN |
Andaman and Nicobar Islands |
| IN-AP |
Andhra Pradesh |
| IN-AR |
Arunachal Pradesh |
| IN-AS |
Assam |
| IN-BR |
Bihār |
| IN-CH |
Chandigarh |
| IN-CT |
Chhattisgarh |
| IN-DN |
Dadar and Nagar Haveli |
| IN-DD |
Daman and Diu |
| IN-DL |
Delhi |
| IN-GA |
Goa |
| IN-GJ |
Gujarat |
| IN-HR |
Haryana |
| IN-HP |
Himachal Pradesh |
| IN-JK |
Jammu and Kashmir |
| IN-JH |
Jharkhand |
| IN-KA |
Karnataka |
| IN-KL |
Kerala |
| IN-LD |
Lakshadweep |
| IN-MP |
Madhya Pradesh |
| IN-MH |
Maharashtra |
| IN-MN |
Manipur |
| IN-ML |
Meghalaya |
| IN-MZ |
Mizoram |
| IN-NL |
Nagaland |
| IN-OR |
Orissa |
| IN-PY |
Pondicherry |
| IN-PB |
Punjab |
| IN-RJ |
Rajasthan |
| IN-SK |
Sikkim |
| IN-TN |
Tamil Nadu |
| IN-TG |
Telangana |
| IN-TR |
Tripura |
| IN-UP |
Uttar Pradesh |
| IN-WB |
WEST BENGAL |