Skip to content
Snippets Groups Projects
Commit e69deef7 authored by albruiz's avatar albruiz
Browse files

sql finalizado

parent e72f63d3
Branches
No related tags found
No related merge requests found
......@@ -7,10 +7,11 @@ DROP TABLE RelationGeneralData1;
 
CREATE TABLE RelationGeneralData1(
warType int not null,
type_of_conflict varchar(100) not null,
size_of_conflict varchar(100) not null,
PRIMARY KEY(warType)
);
 
CREATE TABLE Economic1(
country VARCHAR(3) NOT NULL,
ccode INTEGER NOT NULL,
......@@ -173,6 +174,16 @@ CREATE TABLE ReligionData(
);
 
 
INSERT INTO RelationGeneralData1(warType,size_of_conflict) VALUES (1,'global');
INSERT INTO RelationGeneralData1(warType,size_of_conflict) VALUES (2,'colonial war');
INSERT INTO RelationGeneralData1(warType,size_of_conflict) VALUES (3,'international');
INSERT INTO RelationGeneralData1(warType,size_of_conflict) VALUES (4,'civil war');
INSERT INTO RelationGeneralData1(warType,size_of_conflict) VALUES (5,'small country');
INSERT INTO RelationGeneralData1(warType,size_of_conflict) VALUES (6,'medium region');
INSERT INTO RelationGeneralData1(warType,size_of_conflict) VALUES (7,'intercommunity war');
INSERT INTO RelationGeneralData1(warType,size_of_conflict) VALUES (8,'wars between or among non-state entities that take place in non-state');
INSERT INTO RelationGeneralData1(warType,size_of_conflict) VALUES (9,'wars between NSAs that take place across state borders');
INSERT INTO General2(warName,warType,startYear1,endYear1,startYear2,endYear2) VALUES ('Allied Bombardment of Algiers',3,1816,1816,-8,-8);
INSERT INTO General2(warName,warType,startYear1,endYear1,startYear2,endYear2) VALUES ('Ottoman-Wahhabi',3,1816,1818,-8,-8);
INSERT INTO General2(warName,warType,startYear1,endYear1,startYear2,endYear2) VALUES ('Liberation of Chile',2,1817,1818,-8,-8);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment