IF OBJECT_ID('countries', 'U') IS NOT NULL DROP TABLE [countries];

CREATE TABLE [countries] (
    [id] INT NOT NULL,
    [alpha_2] CHAR(2) NOT NULL DEFAULT '',
    [alpha_3] CHAR(3) NOT NULL DEFAULT '',
    [name] NVARCHAR(75) NOT NULL DEFAULT '',
    CONSTRAINT [pk_countries] PRIMARY KEY ([id])
);

INSERT INTO [countries] ([id], [alpha_2], [alpha_3], [name]) VALUES
(4,'af','afg',N'Afganistan'),
(8,'al','alb',N'Albaania'),
(12,'dz','dza',N'Alžeeria'),
(840,'us','usa',N'Ameerika Ühendriigid'),
(20,'ad','and',N'Andorra'),
(24,'ao','ago',N'Angola'),
(28,'ag','atg',N'Antigua ja Barbuda'),
(784,'ae','are',N'Araabia Ühendemiraadid'),
(32,'ar','arg',N'Argentina'),
(51,'am','arm',N'Armeenia'),
(36,'au','aus',N'Austraalia'),
(40,'at','aut',N'Austria'),
(31,'az','aze',N'Aserbaidžaan'),
(44,'bs','bhs',N'Bahama'),
(48,'bh','bhr',N'Bahrein'),
(50,'bd','bgd',N'Bangladesh'),
(52,'bb','brb',N'Barbados'),
(585,'pw','plw',N'Belau'),
(56,'be','bel',N'Belgia'),
(84,'bz','blz',N'Belize'),
(204,'bj','ben',N'Benin'),
(64,'bt','btn',N'Bhutan'),
(104,'mm','mmr',N'Birma'),
(68,'bo','bol',N'Boliivia'),
(70,'ba','bih',N'Bosnia ja Hertsegoviina'),
(72,'bw','bwa',N'Botswana'),
(76,'br','bra',N'Brasiilia'),
(96,'bn','brn',N'Brunei'),
(100,'bg','bgr',N'Bulgaaria'),
(854,'bf','bfa',N'Burkina Faso'),
(108,'bi','bdi',N'Burundi'),
(170,'co','col',N'Colombia'),
(188,'cr','cri',N'Costa Rica'),
(262,'dj','dji',N'Djibouti'),
(212,'dm','dma',N'Dominica'),
(214,'do','dom',N'Dominikaani Vabariik'),
(218,'ec','ecu',N'Ecuador'),
(233,'ee','est',N'Eesti'),
(818,'eg','egy',N'Egiptus'),
(226,'gq','gnq',N'Ekvatoriaal-Guinea'),
(222,'sv','slv',N'El Salvador'),
(384,'ci','civ',N'Elevandiluurannik'),
(232,'er','eri',N'Eritrea'),
(231,'et','eth',N'Etioopia'),
(242,'fj','fji',N'Fidži'),
(266,'ga','gab',N'Gabon'),
(270,'gm','gmb',N'Gambia'),
(288,'gh','gha',N'Ghana'),
(308,'gd','grd',N'Grenada'),
(268,'ge','geo',N'Gruusia'),
(320,'gt','gtm',N'Guatemala'),
(324,'gn','gin',N'Guinea'),
(624,'gw','gnb',N'Guinea-Bissau'),
(328,'gy','guy',N'Guyana'),
(608,'ph','phl',N'Filipiinid'),
(332,'ht','hti',N'Haiti'),
(156,'cn','chn',N'Hiina'),
(724,'es','esp',N'Hispaania'),
(528,'nl','nld',N'Holland'),
(340,'hn','hnd',N'Honduras'),
(191,'hr','hrv',N'Horvaatia'),
(372,'ie','irl',N'Iirimaa'),
(376,'il','isr',N'Iisrael'),
(626,'tl','tls',N'Ida-Timor'),
(356,'in','ind',N'India'),
(360,'id','idn',N'Indoneesia'),
(352,'is','isl',N'Island'),
(368,'iq','irq',N'Iraak'),
(364,'ir','irn',N'Iraan'),
(380,'it','ita',N'Itaalia'),
(392,'jp','jpn',N'Jaapan'),
(388,'jm','jam',N'Jamaica'),
(887,'ye','yem',N'Jeemen'),
(400,'jo','jor',N'Jordaania'),
(116,'kh','khm',N'Kambodža'),
(120,'cm','cmr',N'Kamerun'),
(124,'ca','can',N'Kanada'),
(398,'kz','kaz',N'Kasahstan'),
(634,'qa','qat',N'Katar'),
(404,'ke','ken',N'Keenia'),
(140,'cf','caf',N'Kesk-Aafrika Vabariik'),
(296,'ki','kir',N'Kiribati'),
(174,'km','com',N'Komoorid'),
(180,'cd','cod',N'Kongo Demokraatlik Vabariik'),
(178,'cg','cog',N'Kongo Vabariik'),
(300,'gr','grc',N'Kreeka'),
(192,'cu','cub',N'Kuuba'),
(414,'kw','kwt',N'Kuveit'),
(196,'cy','cyp',N'Küpros'),
(417,'kg','kgz',N'Kõrgõzstan'),
(418,'la','lao',N'Laos'),
(440,'lt','ltu',N'Leedu'),
(426,'ls','lso',N'Lesotho'),
(422,'lb','lbn',N'Liibanon'),
(430,'lr','lbr',N'Libeeria'),
(438,'li','lie',N'Liechtenstein'),
(434,'ly','lby',N'Liibüa'),
(442,'lu','lux',N'Luksemburg'),
(710,'za','zaf',N'Lõuna-Aafrika Vabariik'),
(410,'kr','kor',N'Lõuna-Korea'),
(728,'ss','ssd',N'Lõuna-Sudaan'),
(428,'lv','lva',N'Läti'),
(450,'mg','mdg',N'Madagaskar'),
(458,'my','mys',N'Malaisia'),
(454,'mw','mwi',N'Malawi'),
(462,'mv','mdv',N'Maldiivid'),
(466,'ml','mli',N'Mali'),
(470,'mt','mlt',N'Malta'),
(504,'ma','mar',N'Maroko'),
(584,'mh','mhl',N'Marshalli Saared'),
(478,'mr','mrt',N'Mauritaania'),
(480,'mu','mus',N'Mauritius'),
(484,'mx','mex',N'Mehhiko'),
(583,'fm','fsm',N'Mikroneesia Liiduriigid'),
(498,'md','mda',N'Moldova'),
(492,'mc','mco',N'Monaco'),
(496,'mn','mng',N'Mongoolia'),
(499,'me','mne',N'Montenegro'),
(508,'mz','moz',N'Mosambiik'),
(516,'na','nam',N'Namiibia'),
(520,'nr','nru',N'Nauru'),
(524,'np','npl',N'Nepal'),
(558,'ni','nic',N'Nicaragua'),
(566,'ng','nga',N'Nigeeria'),
(562,'ne','ner',N'Niger'),
(578,'no','nor',N'Norra'),
(512,'om','omn',N'Omaan'),
(598,'pg','png',N'Paapua Uus-Guinea'),
(586,'pk','pak',N'Pakistan'),
(591,'pa','pan',N'Panama'),
(600,'py','pry',N'Paraguay'),
(604,'pe','per',N'Peruu'),
(616,'pl','pol',N'Poola'),
(620,'pt','prt',N'Portugal'),
(250,'fr','fra',N'Prantsusmaa'),
(408,'kp','prk',N'Põhja-Korea'),
(807,'mk','mkd',N'Põhja-Makedoonia'),
(132,'cv','cpv',N'Roheneemesaared'),
(752,'se','swe',N'Rootsi'),
(642,'ro','rou',N'Rumeenia'),
(646,'rw','rwa',N'Rwanda'),
(90,'sb','slb',N'Saalomoni Saared'),
(659,'kn','kna',N'Saint Kitts ja Nevis'),
(662,'lc','lca',N'Saint Lucia'),
(670,'vc','vct',N'Saint Vincent ja Grenadiinid'),
(276,'de','deu',N'Saksamaa'),
(894,'zm','zmb',N'Sambia'),
(882,'ws','wsm',N'Samoa'),
(674,'sm','smr',N'San Marino'),
(678,'st','stp',N'São Tomé ja Príncipe'),
(682,'sa','sau',N'Saudi Araabia'),
(690,'sc','syc',N'Seišellid'),
(686,'sn','sen',N'Senegal'),
(688,'rs','srb',N'Serbia'),
(694,'sl','sle',N'Sierra Leone'),
(702,'sg','sgp',N'Singapur'),
(703,'sk','svk',N'Slovakkia'),
(705,'si','svn',N'Sloveenia'),
(706,'so','som',N'Somaalia'),
(246,'fi','fin',N'Soome'),
(144,'lk','lka',N'Sri Lanka'),
(729,'sd','sdn',N'Sudaan'),
(740,'sr','sur',N'Suriname'),
(826,'gb','gbr',N'Suurbritannia'),
(748,'sz','swz',N'Svaasimaa'),
(760,'sy','syr',N'Süüria'),
(756,'ch','che',N'Šveits'),
(716,'zw','zwe',N'Zimbabwe'),
(208,'dk','dnk',N'Taani'),
(762,'tj','tjk',N'Tadžikistan'),
(764,'th','tha',N'Tai'),
(834,'tz','tza',N'Tansaania'),
(768,'tg','tgo',N'Togo'),
(776,'to','ton',N'Tonga'),
(780,'tt','tto',N'Trinidad ja Tobago'),
(148,'td','tcd',N'Tšaad'),
(203,'cz','cze',N'Tšehhi'),
(152,'cl','chl',N'Tšiili'),
(788,'tn','tun',N'Tuneesia'),
(792,'tr','tur',N'Türgi'),
(795,'tm','tkm',N'Türkmenistan'),
(798,'tv','tuv',N'Tuvalu'),
(800,'ug','uga',N'Uganda'),
(804,'ua','ukr',N'Ukraina'),
(348,'hu','hun',N'Ungari'),
(858,'uy','ury',N'Uruguay'),
(860,'uz','uzb',N'Usbekistan'),
(554,'nz','nzl',N'Uus-Meremaa'),
(112,'by','blr',N'Valgevene'),
(548,'vu','vut',N'Vanuatu'),
(643,'ru','rus',N'Venemaa'),
(862,'ve','ven',N'Venezuela'),
(704,'vn','vnm',N'Vietnam')