Query time 0.00040
    
    
            JSON explain
        {
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "5.33"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "1.10"
      },
      "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": 11,
            "rows_produced_per_join": 1,
            "filtered": "10.00",
            "cost_info": {
              "read_cost": "2.75",
              "eval_cost": "0.11",
              "prefix_cost": "3.85",
              "data_read_per_join": "123"
            },
            "used_columns": [
              "state_id",
              "country_code",
              "code",
              "status"
            ],
            "attached_condition": "(`betaatif_store`.`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": [
              "betaatif_store.a.state_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.28",
              "eval_cost": "0.11",
              "prefix_cost": "4.24",
              "data_read_per_join": "862"
            },
            "used_columns": [
              "state_id",
              "lang_code",
              "state"
            ]
          }
        }
      ]
    }
  }
}
    
            
            
                Result
                                    
                                                    | code | state | 
                                            
                                                            | Eastern | المنطقة الشرقية | 
                                            
                                                            | AlBaha | منطقة الباحه | 
                                            
                                                            | AlJouf | منطقة الجوف | 
                                            
                                                            | Northern | منطقة الحدود الشمالية | 
                                            
                                                            | Riyadh | منطقة الرياض | 
                                            
                                                            | Qassim | منطقة القصيم | 
                                            
                                                            | Madinah | منطقة المدينة المنورة | 
                                            
                                                            | Tabuk | منطقة تبوك | 
                                            
                                                            | Jazan | منطقة جازان | 
                                            
                                                            | Hail | منطقة حائل | 
                                            
                                                            | Asir | منطقة عسير | 
                                            
                                                            | Makkah | منطقة مكة المكرمة | 
                                            
                                                            | Najran | منطقة نجران |