The document outlines the creation of a database named 'logic' with tables for Employees, Departments, Projects, and Employee_Projects. It includes the structure of each table, their relationships through foreign keys, and inserts initial data into these tables. The data covers various departments, employees with their details, and projects along with employee assignments to those projects.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
17 views
create and insert
The document outlines the creation of a database named 'logic' with tables for Employees, Departments, Projects, and Employee_Projects. It includes the structure of each table, their relationships through foreign keys, and inserts initial data into these tables. The data covers various departments, employees with their details, and projects along with employee assignments to those projects.
INSERT INTO Employee_Projects (employee_id, project_id) VALUES
(101, 201), (102, 201), (103, 202), (104, 202), (105, 203), (106, 203), (107, 204), (108, 204), (101, 203), -- Alice also works on Financial Analysis (105, 201); -- Eve also works on Cloud Migration