This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drop table if exists `dept_emp` ; | |
drop table if exists `employees` ; | |
CREATE TABLE `dept_emp` ( | |
`emp_no` int(11) NOT NULL, | |
`dept_no` char(4) NOT NULL, | |
`from_date` date NOT NULL, | |
`to_date` date NOT NULL, | |
PRIMARY KEY (`emp_no`,`dept_no`)); | |
CREATE TABLE `employees` ( | |
`emp_no` int(11) NOT NULL, |