






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A final course project for mis582 database concepts, focusing on relational database design and sql queries. It includes an erd diagram, sql code for creating tables (employee, empskill, skill, region, and customer), and inserting data. The project also demonstrates the use of aggregation functions, joins, subqueries, and view creation in sql. Useful for students learning database concepts and sql programming, providing practical examples and exercises to enhance their understanding of relational databases and query optimization. It covers essential database operations and design principles, making it a valuable resource for database courses and self-study. A good resource for students learning database concepts and sql programming.
Typology: Assignments
1 / 12
This page cannot be seen from the preview
Don't miss anything!







1. ERD diagram
RegionID VARCHAR(4) NOT NULL PRIMARY KEY, RegionName VARCHAR(20) NOT NULL); CREATE TABLE EMPLOYEE ( EmpID VARCHAR(4) NOT NULL PRIMARY KEY, EmpLastName VARCHAR(255) NOT NULL, EmpFirstName VARCHAR(255) NOT NULL, EmpInitial CHAR, EmpHireDate DATE NOT NULL, RegionID VARCHAR(4) NOT NULL, FOREIGN KEY(RegionID) REFERENCES REGION(RegionID)); CREATE TABLE SKILL ( SkillID VARCHAR(4) NOT NULL PRIMARY KEY,
('E2', 'Khan', 'Salman', NULL, '2017-09-23', '1001'), ('E3', 'Roshan', 'Hritik', NULL, '2016-12-06', '1002'), ('E4', 'Pandey', 'Poonam', NULL, '2015-09-06', '1005'),
('E5', 'Rathi', 'Rahul', NULL, '2014-08-19', '1004'), ('E6', 'Rathi', 'Renu', NULL, '2020-12-20', '1007'), ('E7', 'Chandak', 'Lalit', NULL, '2009-05-06', '1006'), ('E8', 'Agarawal', 'Gaurav', NULL, '2008-11-01', '1001'), ('E9', 'Gandhi', 'Dhiraj', NULL, '2004-06-04', '1002'), ('E10', 'Sharma', 'Pratiksha', NULL, '2000-08-06', '1003'), ('E11', 'Dixit', 'Madhuri', NULL, '2002-11-07', '1004'), ('E12', 'Gehlot', 'Nidhi', NULL, '2007-10-08', '1005'), ('E13', 'Smith', 'Rebecca', NULL, '2010-11-09', '1006'), ('E14', 'Gomez', 'Pascal', NULL, '2011-08-12', '1007'), ('E15', 'Mims', 'Linda', NULL, '2015-12-13', '1001'), ('E16', 'Hennie', 'Mathew', NULL, '2017-11-18', '1002'), ('E17', 'Pounds', 'Carlos', NULL, '2016-02-23', '1003'), ('E18', 'Shorthouse', 'Jordan', NULL, '2014-01-27', '1004'), ('E19', 'Ruck', 'Minnie', NULL, '2002-11-27', '1005'), ('E20', 'Rathi', 'Sneha', NULL, '2007-05-24', '1006'), ('E21', 'Sharma', 'Apeksha', NULL, '2005-04-23', '1007'), ('E22', 'Rathi', 'Ekta', NULL, '2005-11-19', '1001'), ('E23', 'Balachandran', 'Gayathri', NULL, '2002-03-18', '1002'), ('E24', 'Shah', 'Nikhil', NULL, '2001-02-16', '1003'), ('E25', 'Pandey', 'Pankaj', NULL, '2018-01-06', '1004'); INSERT INTO SKILL (SkillID, SkillDescription, SkillRate) VALUES ('S1', 'Data Entry I', 12.00), ('S2', 'Data Entry II', 22.00), ('S3', 'System Analyst I', 30.00), ('S4', 'System Analyst II', 40.00), ('S5', 'Database Designer I', 40.00), ('S6', 'Database Designer II', 50.00), ('S7', 'Java I', 35.00), ('S8', 'Java II', 45.00), ('S9', 'C++ I', 35.00), ('S10', 'C++ II', 45.00), ('S11', 'Python I', 35.00), ('S12', 'Python II', 45.00); INSERT INTO EMPsKILL (EmpID, SkillID) VALUES