Skip to content
Snippets Groups Projects
Commit 3a816d21 authored by Rafi's avatar Rafi
Browse files

Updated MySQL file

parent a3df4c7a
No related branches found
No related tags found
No related merge requests found
...@@ -8,11 +8,21 @@ create table Employees( ...@@ -8,11 +8,21 @@ create table Employees(
); );
create table Shifts( create table Shifts(
shift_day int, shift_id INT NOT NULL auto_increment UNIQUE,
start_time int, full_date DATE,
end_time int start_time INT,
end_time INT,
employee_ID INT,
PRIMARY KEY (shift_id),
FOREIGN KEY (employee_ID) REFERENCES Employees(employee_ID)
); );
INSERT INTO Employees (first_name,last_name) VALUES ('Rafi', 'Zereselasie');
select * from Shifts;
drop table Shifts;
select * from Employees; select * from Employees;
INSERT INTO Employees (first_name,last_name) VALUES ('Rafi', 'Zereselasie'); INSERT INTO Employees (first_name,last_name) VALUES ('Rafi', 'Zereselasie');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment