Starting from:

$30

CSE 5330/3330

CSE 5330/3330 Project 1 

In this project, you will get started on how to use a relational DBMS. You can use the MySQL system and the MySQL workbench for creating tables, populating them with data, and querying the tables. You should do the following:

1. Create the following tables specified in the textbook(Figure 3.2): EMPLOYEE,

DEPARTMENT, PROJECT, WORKS_ON, DEPT_LOCATIONS. You can write CREATE
TABLE statements in a text file, and execute the file using SQLPLUS; OR you can use MySQL workbench to create the tables. Choose appropriate data types for each attribute. (Important Note: Because there are circular references in the referential integrity constraints, you may have to add some referential integrity constraints later, after the tables are first created without these constraints).

2.     Load the records that will be provided to you into each of the tables that you created. (Note: Again, here you may have to either: disable some foreign key constraints when you insert records in the first table you load because of circular references and then enable the constraints; OR insert some records with NULL for some of their foreign keys and then update the foreign key values after the records they reference are inserted (because of the circular references)). You can use any programming or scripting language you are familiar with (JAVA with JDBC, Pro*C, PERL, PHP, etc.) OR you can use MySQL workbench OR other tool to load the data.

3.     Write SQL queries OR use a simple Web interfaces to get the results of the following queries:

4.     Enter a department name, and retrieve all the names and salaries of all employees who work in that department.

5.     Enter an employee last name and first name and retrieve a list of projects names/hours per week that the employee works on.

6.     Enter a department name and retrieve the total of all employee salaries who work in the department.

7.     For each department, retrieve the department name and the number (count) of employees who work in that department. Order the result by number of employees in descending order.

8.     For each employee who is a supervisor, retrieve the employee first and last name and the number (count) of employees that are supervised. Order the result in descending order.

  

You should turn in via Canvas to a document that includes:

1.     Which tools you used for the project. (Readme file)

2.     Source code of SQL CREATE statements, or screen shots of how you created the tables via one of the tools.

3.     Explain which method you used to load the data into the tables.

4.     Source code of SQL SELECT statements for each query executed, showing the query result; OR screen shots of your simple Web interface that was used to execute the queries and show the query results.

5.     If the project is done in a group of 2 or 3, just submit one project, and explain what parts each student worked on.

  

Due Date: Friday October 2nd, 2020 by 11.59pm. 

 

More products