Query time 0.00032
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "15.17"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "5.50"
},
"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": 55,
"rows_produced_per_join": 5,
"filtered": "10.00",
"cost_info": {
"read_cost": "2.25",
"eval_cost": "0.55",
"prefix_cost": "7.75",
"data_read_per_join": "616"
},
"used_columns": [
"state_id",
"country_code",
"code",
"status"
],
"attached_condition": "(`shoptheindependents_com`.`a`.`status` = 'A')"
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"state_id",
"lang_code"
],
"key_length": "9",
"ref": [
"shoptheindependents_com.a.state_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 5,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.38",
"eval_cost": "0.55",
"prefix_cost": "9.68",
"data_read_per_join": "4K"
},
"used_columns": [
"state_id",
"lang_code",
"state"
]
}
}
]
}
}
}
Result
| code |
state |
| AL |
Alabama |
| AK |
Alaska |
| AZ |
Arizona |
| AR |
Arkansas |
| CA |
California |
| CO |
Colorado |
| CT |
Connecticut |
| DE |
Delaware |
| DC |
District of Columbia |
| FL |
Florida |
| GA |
Georgia |
| GU |
Guam |
| HI |
Hawaii |
| ID |
Idaho |
| IL |
Illinois |
| IN |
Indiana |
| IA |
Iowa |
| KS |
Kansas |
| KY |
Kentucky |
| LA |
Louisiana |
| ME |
Maine |
| MD |
Maryland |
| MA |
Massachusetts |
| MI |
Michigan |
| MN |
Minnesota |
| MS |
Mississippi |
| MO |
Missouri |
| MT |
Montana |
| NE |
Nebraska |
| NV |
Nevada |
| NH |
New Hampshire |
| NJ |
New Jersey |
| NM |
New Mexico |
| NY |
New York |
| NC |
North Carolina |
| ND |
North Dakota |
| MP |
Northern Mariana Islands |
| OH |
Ohio |
| OK |
Oklahoma |
| OR |
Oregon |
| PA |
Pennsylvania |
| PR |
Puerto Rico |
| RI |
Rhode Island |
| SC |
South Carolina |
| SD |
South Dakota |
| TN |
Tennessee |
| TX |
Texas |
| UT |
Utah |
| VT |
Vermont |
| VI |
Virgin Islands |
| VA |
Virginia |
| WA |
Washington |
| WV |
West Virginia |
| WI |
Wisconsin |
| WY |
Wyoming |