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'Afghanistan'),
(8,'al','alb',N'Albania'),
(12,'dz','dza',N'Algeria'),
(20,'ad','and',N'Andorra'),
(24,'ao','ago',N'Angola'),
(28,'ag','atg',N'Antigua e Barbuda'),
(682,'sa','sau',N'Arabia Saudita'),
(32,'ar','arg',N'Argentina'),
(51,'am','arm',N'Armenia'),
(36,'au','aus',N'Australia'),
(40,'at','aut',N'Austria'),
(31,'az','aze',N'Azerbaigian'),
(44,'bs','bhs',N'Bahamas'),
(48,'bh','bhr',N'Bahrein'),
(50,'bd','bgd',N'Bangladesh'),
(52,'bb','brb',N'Barbados'),
(56,'be','bel',N'Belgio'),
(84,'bz','blz',N'Belize'),
(204,'bj','ben',N'Benin'),
(64,'bt','btn',N'Bhutan'),
(112,'by','blr',N'Bielorussia'),
(104,'mm','mmr',N'Birmania'),
(68,'bo','bol',N'Bolivia'),
(70,'ba','bih',N'Bosnia ed Erzegovina'),
(72,'bw','bwa',N'Botswana'),
(76,'br','bra',N'Brasile'),
(96,'bn','brn',N'Brunei'),
(100,'bg','bgr',N'Bulgaria'),
(854,'bf','bfa',N'Burkina Faso'),
(108,'bi','bdi',N'Burundi'),
(116,'kh','khm',N'Cambogia'),
(120,'cm','cmr',N'Camerun'),
(124,'ca','can',N'Canada'),
(132,'cv','cpv',N'Capo Verde'),
(148,'td','tcd',N'Ciad'),
(152,'cl','chl',N'Cile'),
(156,'cn','chn',N'Cina'),
(196,'cy','cyp',N'Cipro'),
(170,'co','col',N'Colombia'),
(174,'km','com',N'Comore'),
(408,'kp','prk',N'Corea del Nord'),
(410,'kr','kor',N'Corea del Sud'),
(384,'ci','civ',N'Costa d''Avorio'),
(188,'cr','cri',N'Costa Rica'),
(191,'hr','hrv',N'Croazia'),
(192,'cu','cub',N'Cuba'),
(208,'dk','dnk',N'Danimarca'),
(212,'dm','dma',N'Dominica'),
(218,'ec','ecu',N'Ecuador'),
(818,'eg','egy',N'Egitto'),
(222,'sv','slv',N'El Salvador'),
(784,'ae','are',N'Emirati Arabi Uniti'),
(232,'er','eri',N'Eritrea'),
(233,'ee','est',N'Estonia'),
(231,'et','eth',N'Etiopia'),
(242,'fj','fji',N'Figi'),
(608,'ph','phl',N'Filippine'),
(246,'fi','fin',N'Finlandia'),
(250,'fr','fra',N'Francia'),
(266,'ga','gab',N'Gabon'),
(270,'gm','gmb',N'Gambia'),
(268,'ge','geo',N'Georgia'),
(276,'de','deu',N'Germania'),
(288,'gh','gha',N'Ghana'),
(388,'jm','jam',N'Giamaica'),
(392,'jp','jpn',N'Giappone'),
(262,'dj','dji',N'Gibuti'),
(400,'jo','jor',N'Giordania'),
(300,'gr','grc',N'Grecia'),
(308,'gd','grd',N'Grenada'),
(320,'gt','gtm',N'Guatemala'),
(324,'gn','gin',N'Guinea'),
(624,'gw','gnb',N'Guinea-Bissau'),
(226,'gq','gnq',N'Guinea Equatoriale'),
(328,'gy','guy',N'Guyana'),
(332,'ht','hti',N'Haiti'),
(340,'hn','hnd',N'Honduras'),
(356,'in','ind',N'India'),
(360,'id','idn',N'Indonesia'),
(364,'ir','irn',N'Iran'),
(368,'iq','irq',N'Iraq'),
(372,'ie','irl',N'Irlanda'),
(352,'is','isl',N'Islanda'),
(584,'mh','mhl',N'Isole Marshall'),
(90,'sb','slb',N'Isole Salomone'),
(376,'il','isr',N'Israele'),
(380,'it','ita',N'Italia'),
(398,'kz','kaz',N'Kazakistan'),
(404,'ke','ken',N'Kenya'),
(417,'kg','kgz',N'Kirghizistan'),
(296,'ki','kir',N'Kiribati'),
(414,'kw','kwt',N'Kuwait'),
(418,'la','lao',N'Laos'),
(426,'ls','lso',N'Lesotho'),
(428,'lv','lva',N'Lettonia'),
(422,'lb','lbn',N'Libano'),
(430,'lr','lbr',N'Liberia'),
(434,'ly','lby',N'Libia'),
(438,'li','lie',N'Liechtenstein'),
(440,'lt','ltu',N'Lituania'),
(442,'lu','lux',N'Lussemburgo'),
(807,'mk','mkd',N'Macedonia del Nord'),
(450,'mg','mdg',N'Madagascar'),
(454,'mw','mwi',N'Malawi'),
(458,'my','mys',N'Malaysia'),
(462,'mv','mdv',N'Maldive'),
(466,'ml','mli',N'Mali'),
(470,'mt','mlt',N'Malta'),
(504,'ma','mar',N'Marocco'),
(478,'mr','mrt',N'Mauritania'),
(480,'mu','mus',N'Mauritius'),
(484,'mx','mex',N'Messico'),
(583,'fm','fsm',N'Micronesia'),
(498,'md','mda',N'Moldavia'),
(496,'mn','mng',N'Mongolia'),
(499,'me','mne',N'Montenegro'),
(508,'mz','moz',N'Mozambico'),
(516,'na','nam',N'Namibia'),
(520,'nr','nru',N'Nauru'),
(524,'np','npl',N'Nepal'),
(558,'ni','nic',N'Nicaragua'),
(562,'ne','ner',N'Niger'),
(566,'ng','nga',N'Nigeria'),
(578,'no','nor',N'Norvegia'),
(554,'nz','nzl',N'Nuova Zelanda'),
(512,'om','omn',N'Oman'),
(528,'nl','nld',N'Paesi Bassi'),
(586,'pk','pak',N'Pakistan'),
(585,'pw','plw',N'Palau'),
(591,'pa','pan',N'Panama'),
(598,'pg','png',N'Papua Nuova Guinea'),
(600,'py','pry',N'Paraguay'),
(604,'pe','per',N'Perù'),
(616,'pl','pol',N'Polonia'),
(620,'pt','prt',N'Portogallo'),
(492,'mc','mco',N'Monaco'),
(634,'qa','qat',N'Qatar'),
(826,'gb','gbr',N'Regno Unito'),
(180,'cd','cod',N'RD del Congo'),
(203,'cz','cze',N'Rep. Ceca'),
(140,'cf','caf',N'Rep. Centrafricana'),
(178,'cg','cog',N'Rep. del Congo'),
(214,'do','dom',N'Rep. Dominicana'),
(642,'ro','rou',N'Romania'),
(646,'rw','rwa',N'Ruanda'),
(643,'ru','rus',N'Russia'),
(659,'kn','kna',N'Saint Kitts e Nevis'),
(662,'lc','lca',N'Saint Lucia'),
(670,'vc','vct',N'Saint Vincent e Grenadine'),
(882,'ws','wsm',N'Samoa'),
(674,'sm','smr',N'San Marino'),
(678,'st','stp',N'São Tomé e Príncipe'),
(686,'sn','sen',N'Senegal'),
(688,'rs','srb',N'Serbia'),
(690,'sc','syc',N'Seychelles'),
(694,'sl','sle',N'Sierra Leone'),
(702,'sg','sgp',N'Singapore'),
(760,'sy','syr',N'Siria'),
(703,'sk','svk',N'Slovacchia'),
(705,'si','svn',N'Slovenia'),
(706,'so','som',N'Somalia'),
(724,'es','esp',N'Spagna'),
(144,'lk','lka',N'Sri Lanka'),
(840,'us','usa',N'Stati Uniti'),
(710,'za','zaf',N'Sudafrica'),
(729,'sd','sdn',N'Sudan'),
(728,'ss','ssd',N'Sudan del Sud'),
(740,'sr','sur',N'Suriname'),
(752,'se','swe',N'Svezia'),
(756,'ch','che',N'Svizzera'),
(748,'sz','swz',N'eSwatini'),
(762,'tj','tjk',N'Tagikistan'),
(834,'tz','tza',N'Tanzania'),
(764,'th','tha',N'Thailandia'),
(626,'tl','tls',N'Timor Est'),
(768,'tg','tgo',N'Togo'),
(776,'to','ton',N'Tonga'),
(780,'tt','tto',N'Trinidad e Tobago'),
(788,'tn','tun',N'Tunisia'),
(792,'tr','tur',N'Turchia'),
(795,'tm','tkm',N'Turkmenistan'),
(798,'tv','tuv',N'Tuvalu'),
(804,'ua','ukr',N'Ucraina'),
(800,'ug','uga',N'Uganda'),
(348,'hu','hun',N'Ungheria'),
(858,'uy','ury',N'Uruguay'),
(860,'uz','uzb',N'Uzbekistan'),
(548,'vu','vut',N'Vanuatu'),
(862,'ve','ven',N'Venezuela'),
(704,'vn','vnm',N'Vietnam'),
(887,'ye','yem',N'Yemen'),
(894,'zm','zmb',N'Zambia'),
(716,'zw','zwe',N'Zimbabwe')