Query time 0.00129
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "202.59"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "137.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": 137,
"rows_produced_per_join": 137,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.94",
"eval_cost": "13.70",
"prefix_cost": "17.64",
"data_read_per_join": "14K"
},
"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": [
"wearethehelpful_scalesta_net.a.state_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 137,
"filtered": "100.00",
"cost_info": {
"read_cost": "34.25",
"eval_cost": "13.70",
"prefix_cost": "65.59",
"data_read_per_join": "104K"
},
"used_columns": [
"state_id",
"lang_code",
"state"
]
}
}
]
}
}
}
Result
| code |
state |
| ABN |
Aberdeen |
| ABNS |
Aberdeenshire |
| ANG |
Anglesey |
| AGS |
Angus |
| ANN |
Antrim and Newtownabbey |
| AND |
Ards and North Down |
| ARY |
Argyll and Bute |
| ABC |
Armagh City, Banbridge and Craigavon |
| AVN |
Avon |
| BAN |
Banffshire |
| BEDS |
Bedfordshire |
| BFS |
Belfast City |
| BERKS |
Berkshire |
| BEW |
Berwickshire |
| BLA |
Blaenau Gwent |
| BRI |
Bridgend |
| BSTL |
Bristol |
| BUCKS |
Buckinghamshire |
| CAE |
Caerphilly |
| CAI |
Caithness |
| CAMBS |
Cambridgeshire |
| CDF |
Cardiff |
| CARM |
Carmarthenshire |
| CCG |
Causeway Coast and Glens |
| CDGN |
Ceredigion |
| CHES |
Cheshire |
| CLACK |
Clackmannanshire |
| CLV |
Cleveland |
| CWD |
Clwyd |
| CON |
Conwy |
| CORN |
Cornwall |
| ANT |
County Antrim |
| ARM |
County Armagh |
| DOW |
County Down |
| FER |
County Fermanagh |
| LDY |
County Londonderry |
| TYR |
County Tyrone |
| CMA |
Cumbria |
| DNBG |
Denbighshire |
| DERBY |
Derbyshire |
| DRS |
Derry and Strabane |
| DVN |
Devon |
| DOR |
Dorset |
| DGL |
Dumfries and Galloway |
| DFS |
Dumfries-shire |
| DUND |
Dundee |
| DHM |
Durham |
| DFD |
Dyfed |
| ARYE |
East Ayrshire |
| DUNBE |
East Dunbartonshire |
| LOTE |
East Lothian |
| RENE |
East Renfrewshire |
| ERYS |
East Riding of Yorkshire |
| SXE |
East Sussex |
| EDIN |
Edinburgh |
| ESX |
Essex |
| FALK |
Falkirk |
| FMO |
Fermanagh and Omagh |
| FFE |
Fife |
| FLINT |
Flintshire |
| GLAS |
Glasgow |
| GLOS |
Gloucestershire |
| LDN |
Greater London |
| MCH |
Greater Manchester |
| GDD |
Gwynedd |
| HANTS |
Hampshire |
| HWR |
Herefordshire |
| HERTS |
Hertfordshire |
| HLD |
Highlands |
| HUM |
Humberside |
| IVER |
Inverclyde |
| INV |
Inverness-shire |
| IOW |
Isle of Wight |
| IOS |
Isles of Scilly |
| KNT |
Kent |
| KCD |
Kincardineshire |
| LANCS |
Lancashire |
| LEICS |
Leicestershire |
| LINCS |
Lincolnshire |
| LBC |
Lisburn and Castlereagh |
| MER |
Merionethshire |
| MSY |
Merseyside |
| MERT |
Merthyr Tydfil |
| MEA |
Mid and East Antrim |
| MUL |
Mid-Ulster |
| MDX |
Middlesex |
| MLOT |
Midlothian |
| MMOUTH |
Monmouthshire |
| MORAY |
Moray |
| NAI |
Nairnshire |
| NPRTAL |
Neath Port Talbot |
| NEWPT |
Newport |
| NMD |
Newry, Mourne and Down |
| NOR |
Norfolk |
| ARYN |
North Ayrshire |
| LANN |
North Lanarkshire |
| YSN |
North Yorkshire |
| NHM |
Northamptonshire |
| NLD |
Northumberland |
| NOT |
Nottinghamshire |
| ORK |
Orkney Islands |
| OFE |
Oxfordshire |
| PEE |
Peebles-shire |
| PEM |
Pembrokeshire |
| PERTH |
Perth and Kinross |
| PWS |
Powys |
| REN |
Renfrewshire |
| RHON |
Rhondda Cynon Taff |
| ROX |
Roxburghshire |
| RUT |
Rutland |
| BOR |
Scottish Borders |
| SEL |
Selkirkshire |
| SHET |
Shetland Islands |
| SPE |
Shropshire |
| SOM |
Somerset |
| ARYS |
South Ayrshire |
| LANS |
South Lanarkshire |
| SYK |
South Yorkshire |
| SFD |
Staffordshire |
| STIR |
Stirling |
| STI |
Stirlingshire |
| SFK |
Suffolk |
| SRY |
Surrey |
| SUT |
Sutherland |
| SWAN |
Swansea |
| TORF |
Torfaen |
| TWR |
Tyne and Wear |
| VGLAM |
Vale of Glamorgan |
| WARKS |
Warwickshire |
| WDUN |
West Dunbartonshire |
| WLOT |
West Lothian |
| WMD |
West Midlands |
| SXW |
West Sussex |
| YSW |
West Yorkshire |
| WIL |
Western Isles |
| WIG |
Wigtownshire |
| WLT |
Wiltshire |
| WORCS |
Worcestershire |
| WRX |
Wrexham |
| YKS |
Yorkshire |