Data source: ISO

7 rows where country_code = "AD"

View and edit SQL

Link country_code code_31662 name local_variant language_code romanization_system parent_subdivision
AD AD-02* Canillo   ca    
AD AD-03* Encamp   ca    
AD AD-04* La Massana   ca    
AD AD-05* Ordino   ca    
AD AD-06* Sant Julià de Lòria   ca    
AD AD-07* Andorra la Vella   ca    
AD AD-08* Escaldes-Engordany   ca    

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE subdivisions (
    country_code text NOT NULL
    , code_31662 text NOT NULL
    , name text
    , local_variant text
    , language_code text
    , romanization_system text
    , parent_subdivision text
    , PRIMARY KEY (country_code , code_31662)
    , FOREIGN KEY (country_code) REFERENCES countries (alpha_2_code) ON DELETE CASCADE
    , FOREIGN KEY (language_code) REFERENCES languages (alpha_2_code) ON DELETE CASCADE
);