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'Afganistán'),
(8,'al','alb',N'Albania'),
(276,'de','deu',N'Alemania'),
(20,'ad','and',N'Andorra'),
(24,'ao','ago',N'Angola'),
(28,'ag','atg',N'Antigua y Barbuda'),
(682,'sa','sau',N'Arabia Saudita'),
(12,'dz','dza',N'Argelia'),
(32,'ar','arg',N'Argentina'),
(51,'am','arm',N'Armenia'),
(36,'au','aus',N'Australia'),
(40,'at','aut',N'Austria'),
(31,'az','aze',N'Azerbaiyán'),
(44,'bs','bhs',N'Bahamas'),
(50,'bd','bgd',N'Bangladés'),
(52,'bb','brb',N'Barbados'),
(48,'bh','bhr',N'Baréin'),
(56,'be','bel',N'Bélgica'),
(84,'bz','blz',N'Belice'),
(204,'bj','ben',N'Benín'),
(112,'by','blr',N'Bielorrusia'),
(68,'bo','bol',N'Bolivia'),
(70,'ba','bih',N'Bosnia y Herzegovina'),
(72,'bw','bwa',N'Botsuana'),
(76,'br','bra',N'Brasil'),
(96,'bn','brn',N'Brunéi'),
(100,'bg','bgr',N'Bulgaria'),
(854,'bf','bfa',N'Burkina Faso'),
(108,'bi','bdi',N'Burundi'),
(64,'bt','btn',N'Bután'),
(132,'cv','cpv',N'Cabo Verde'),
(116,'kh','khm',N'Camboya'),
(120,'cm','cmr',N'Camerún'),
(124,'ca','can',N'Canadá'),
(634,'qa','qat',N'Catar'),
(148,'td','tcd',N'Chad'),
(152,'cl','chl',N'Chile'),
(156,'cn','chn',N'China'),
(196,'cy','cyp',N'Chipre'),
(170,'co','col',N'Colombia'),
(174,'km','com',N'Comoras'),
(408,'kp','prk',N'Corea del Norte'),
(410,'kr','kor',N'Corea del Sur'),
(384,'ci','civ',N'Costa de Marfil'),
(188,'cr','cri',N'Costa Rica'),
(191,'hr','hrv',N'Croacia'),
(192,'cu','cub',N'Cuba'),
(208,'dk','dnk',N'Dinamarca'),
(212,'dm','dma',N'Dominica'),
(218,'ec','ecu',N'Ecuador'),
(818,'eg','egy',N'Egipto'),
(222,'sv','slv',N'El Salvador'),
(784,'ae','are',N'Emiratos Árabes Unidos'),
(232,'er','eri',N'Eritrea'),
(703,'sk','svk',N'Eslovaquia'),
(705,'si','svn',N'Eslovenia'),
(724,'es','esp',N'España'),
(840,'us','usa',N'Estados Unidos'),
(233,'ee','est',N'Estonia'),
(231,'et','eth',N'Etiopía'),
(608,'ph','phl',N'Filipinas'),
(246,'fi','fin',N'Finlandia'),
(242,'fj','fji',N'Fiyi'),
(250,'fr','fra',N'Francia'),
(266,'ga','gab',N'Gabón'),
(270,'gm','gmb',N'Gambia'),
(268,'ge','geo',N'Georgia'),
(288,'gh','gha',N'Ghana'),
(308,'gd','grd',N'Granada'),
(300,'gr','grc',N'Grecia'),
(320,'gt','gtm',N'Guatemala'),
(324,'gn','gin',N'Guinea'),
(624,'gw','gnb',N'Guinea-Bisáu'),
(226,'gq','gnq',N'Guinea Ecuatorial'),
(328,'gy','guy',N'Guyana'),
(332,'ht','hti',N'Haití'),
(340,'hn','hnd',N'Honduras'),
(348,'hu','hun',N'Hungría'),
(356,'in','ind',N'India'),
(360,'id','idn',N'Indonesia'),
(368,'iq','irq',N'Irak'),
(364,'ir','irn',N'Irán'),
(372,'ie','irl',N'Irlanda'),
(352,'is','isl',N'Islandia'),
(584,'mh','mhl',N'Islas Marshall'),
(90,'sb','slb',N'Islas Salomón'),
(376,'il','isr',N'Israel'),
(380,'it','ita',N'Italia'),
(388,'jm','jam',N'Jamaica'),
(392,'jp','jpn',N'Japón'),
(400,'jo','jor',N'Jordania'),
(398,'kz','kaz',N'Kazajistán'),
(404,'ke','ken',N'Kenia'),
(417,'kg','kgz',N'Kirguistán'),
(296,'ki','kir',N'Kiribati'),
(414,'kw','kwt',N'Kuwait'),
(418,'la','lao',N'Laos'),
(426,'ls','lso',N'Lesoto'),
(428,'lv','lva',N'Letonia'),
(422,'lb','lbn',N'Líbano'),
(430,'lr','lbr',N'Liberia'),
(434,'ly','lby',N'Libia'),
(438,'li','lie',N'Liechtenstein'),
(440,'lt','ltu',N'Lituania'),
(442,'lu','lux',N'Luxemburgo'),
(807,'mk','mkd',N'Macedonia del Norte'),
(450,'mg','mdg',N'Madagascar'),
(458,'my','mys',N'Malasia'),
(454,'mw','mwi',N'Malaui'),
(462,'mv','mdv',N'Maldivas'),
(466,'ml','mli',N'Mali'),
(470,'mt','mlt',N'Malta'),
(504,'ma','mar',N'Marruecos'),
(480,'mu','mus',N'Mauricio'),
(478,'mr','mrt',N'Mauritania'),
(484,'mx','mex',N'México'),
(583,'fm','fsm',N'Micronesia'),
(498,'md','mda',N'Moldavia'),
(492,'mc','mco',N'Mónaco'),
(496,'mn','mng',N'Mongolia'),
(499,'me','mne',N'Montenegro'),
(508,'mz','moz',N'Mozambique'),
(104,'mm','mmr',N'Birmania'),
(516,'na','nam',N'Namibia'),
(520,'nr','nru',N'Nauru'),
(524,'np','npl',N'Nepal'),
(558,'ni','nic',N'Nicaragua'),
(562,'ne','ner',N'Níger'),
(566,'ng','nga',N'Nigeria'),
(578,'no','nor',N'Noruega'),
(554,'nz','nzl',N'Nueva Zelanda'),
(512,'om','omn',N'Omán'),
(528,'nl','nld',N'Países Bajos'),
(586,'pk','pak',N'Pakistán'),
(585,'pw','plw',N'Palaos'),
(591,'pa','pan',N'Panamá'),
(598,'pg','png',N'Papúa Nueva Guinea'),
(600,'py','pry',N'Paraguay'),
(604,'pe','per',N'Perú'),
(616,'pl','pol',N'Polonia'),
(620,'pt','prt',N'Portugal'),
(826,'gb','gbr',N'Reino Unido'),
(140,'cf','caf',N'República Centroafricana'),
(203,'cz','cze',N'República Checa'),
(178,'cg','cog',N'República del Congo'),
(180,'cd','cod',N'República Democrática del Congo'),
(214,'do','dom',N'República Dominicana'),
(646,'rw','rwa',N'Ruanda'),
(642,'ro','rou',N'Rumania'),
(643,'ru','rus',N'Rusia'),
(882,'ws','wsm',N'Samoa'),
(659,'kn','kna',N'San Cristóbal y Nieves'),
(674,'sm','smr',N'San Marino'),
(670,'vc','vct',N'San Vicente y las Granadinas'),
(662,'lc','lca',N'Santa Lucía'),
(678,'st','stp',N'Santo Tomé y Príncipe'),
(686,'sn','sen',N'Senegal'),
(688,'rs','srb',N'Serbia'),
(690,'sc','syc',N'Seychelles'),
(694,'sl','sle',N'Sierra Leona'),
(702,'sg','sgp',N'Singapur'),
(760,'sy','syr',N'Siria'),
(706,'so','som',N'Somalia'),
(144,'lk','lka',N'Sri Lanka'),
(748,'sz','swz',N'Suazilandia'),
(710,'za','zaf',N'Sudáfrica'),
(729,'sd','sdn',N'Sudán'),
(728,'ss','ssd',N'Sudán del Sur'),
(752,'se','swe',N'Suecia'),
(756,'ch','che',N'Suiza'),
(740,'sr','sur',N'Surinam'),
(764,'th','tha',N'Tailandia'),
(834,'tz','tza',N'Tanzania'),
(762,'tj','tjk',N'Tayikistán'),
(626,'tl','tls',N'Timor Oriental'),
(768,'tg','tgo',N'Togo'),
(776,'to','ton',N'Tonga'),
(780,'tt','tto',N'Trinidad y Tobago'),
(788,'tn','tun',N'Túnez'),
(795,'tm','tkm',N'Turkmenistán'),
(792,'tr','tur',N'Turquía'),
(798,'tv','tuv',N'Tuvalu'),
(804,'ua','ukr',N'Ucrania'),
(800,'ug','uga',N'Uganda'),
(858,'uy','ury',N'Uruguay'),
(860,'uz','uzb',N'Uzbekistán'),
(548,'vu','vut',N'Vanuatu'),
(862,'ve','ven',N'Venezuela'),
(704,'vn','vnm',N'Vietnam'),
(887,'ye','yem',N'Yemen'),
(262,'dj','dji',N'Yibuti'),
(894,'zm','zmb',N'Zambia'),
(716,'zw','zwe',N'Zimbabue')