Hey just wondering if someone could potentially help me with figure out how i could fix my MySQL work.
The issue appears to be within the 3rd table (tblRoster) as all other tables execute just fine on their own, i am unsure if it is an issue with the Foreign key formatting or something else, sorry i am still pretty new to this
CREATE TABLE tblStaff(
StaffID INT(10) NOT NULL,
FirstName VARCHAR(20),
LastName VARCHAR(25),
TeamLeader BOOLEAN,
HourlyRate DECIMAL(2,2),
PRIMARY KEY(StaffID)
);
CREATE TABLE tblEvent(
EventID INT(10) NOT NULL,
EDate DATE,
ETime TIME,
PRIMARY KEY(EventID)
);
CREATE TABLE tblRoster(
RosterID INT(10) NOT NULL,
Station VARCHAR(15),
FOREIGN KEY(tblStaff.StaffID),
FOREIGN KEY(tblEvent.EventID),
PRIMARY KEY(RosterID)
);