Somebody please help this is driving me up the wall I need to make a database using sql heres what the table looks like in SQL
Create Table VolcanicActivityHazard
(VolcanoName TEXT(20)NOT NULL,
ActivityStartDate DATE NOT NULL,
Hazard TEXT(25) NOT NULL,
NoOfFatalities NUMBER,
Indicator TEXT(1),
Constraint PKIndex PRIMARY KEY ([VolcanoName],[ActivityStartDate],[Hazard]),
CONSTRAINT FKVolcanoNameone FOREIGN KEY ([VolcanoName]) REFERENCES Volcano);
Im trying to add a second foreign key but it keeps giving me errors the foreign key is called ACTIVITY START DATE and it's from a table called Volcanic Activity, how would I write it into that database. I have tryed everything but Im still learning so I just cant figure it out.
Create Table VolcanicActivityHazard
(VolcanoName TEXT(20)NOT NULL,
ActivityStartDate DATE NOT NULL,
Hazard TEXT(25) NOT NULL,
NoOfFatalities NUMBER,
Indicator TEXT(1),
Constraint PKIndex PRIMARY KEY ([VolcanoName],[ActivityStartDate],[Hazard]),
CONSTRAINT FKVolcanoNameone FOREIGN KEY ([VolcanoName]) REFERENCES Volcano);
Im trying to add a second foreign key but it keeps giving me errors the foreign key is called ACTIVITY START DATE and it's from a table called Volcanic Activity, how would I write it into that database. I have tryed everything but Im still learning so I just cant figure it out.