Question

In: Computer Science

Design an ER Diagram for the given problem. Link the tables that are related and implement...

Design an ER Diagram for the given problem. Link the tables that are related and implement your design using MySQL. Insert at least a minimum of 5 records. Ensure that the data to be added are related to other tables.

Post here the screenshot of the following:

  • Entity Relationship Diagram with attributes, PK, and FK.
  • Use the "describe" command to view the structure of the tables.
  • Use the "select" command to view the contents of the tables.

Company ABC has the following business rules. A department employs many employees, but each employee is employed by only one department. A division operates many departments An employee may be assigned many projects, and a project may have many employees assigned to it. Each department is identified by a department code, department name and phone number are kept in the system for every department. For each division, the division name and division type (Sales, Marketing, or Research ) are kept in the system. For the employee, name, contact number, address, and degree must be kept in the system. For the project, project title, duration(no. of days), and status( completed, canceled, or in progress) are stored in the system.

Solutions

Expert Solution

ER diagram is represented as:

The primary keys in the tables are:

Key                  Table

dep_code       department

ename            employee

div_name        division

title                  project

Table Employee:
Describing the structure of employee table:

Statement:
DESCRIBE employee;

Contents of employee table:

Statement:
Select * from employee;

Table Department:
Describing the structure of department table:

Statement:
DESCRIBE department;

Contents of department table:

Statement:
Select * from department;

Table Division:
Describing the structure of division table:

Statement:
DESCRIBE division;

Contents of Division table:

Statement:
Select * from division;

Table Project:
Describing the structure of Project table:

Statement:
DESCRIBE project;

Contents of Project table:

Statement:
Select * from project;


Related Solutions

Create a database and design an ER diagram for the given question. Must link the related...
Create a database and design an ER diagram for the given question. Must link the related tables then implement the design using MySQL. Insert at least 5 records. Ensure that the data to be added are related to other tables. Follow this format in creating the database and table: Database format: databasename_yourname Table format: tablename_yourname QUESTION: Company ABC has the following business rules. A department employs many employees, but each employee is employed by only one department. A division operates...
Design the database using the ER approach. Then using Java and SQL, implement the following functionality:...
Design the database using the ER approach. Then using Java and SQL, implement the following functionality: Implement a button called “Initialize Database”. When a user clicks it, all necessary tables will be created (or recreated) automatically, with each table be populated with at least 10 tuples so that each query below will return some results. All students should use the database name “sampledb”, username “john”, and password “pass1234”. Implement a user registration and login interface so that only a registered...
Given the following specification, design a class diagram using PlantUML. To design the class diagram, use...
Given the following specification, design a class diagram using PlantUML. To design the class diagram, use abstract, static, package, namespace, association, and generalization on PlantUML Specification: A school has a principal, many students, and many teachers. Each of these persons has a name, birth date, and may borrow and return books. The book class must contain a title, abstract, and when it is available. Teachers and the principal are both paid a salary. A school has many playgrounds and rooms....
Draw a state diagram of the string pattern recognizer, implement it according to the design sequence...
Draw a state diagram of the string pattern recognizer, implement it according to the design sequence of the FSM, and draw a schematic diagram.
Given the business rule below. Draw the Data directories for each entities & ER Diagram. A...
Given the business rule below. Draw the Data directories for each entities & ER Diagram. A DOCTOR can be scheduled for many APPOINTMENTS, but may not have any scheduled at all. Doctor has the attributes such as DoctorID, Firstname, & Lastname. Appointment has attributes such as AppointmentID, Date & Reason. A PATIENT can schedule one or more appointments. Patient entity has attributes such as PatientID, PatientName & Address. One appointment is scheduled with exactly one patient. An appointment must generate...
What role does the entity-relationship (ER) diagram play in the database design process? Discuss the different...
What role does the entity-relationship (ER) diagram play in the database design process? Discuss the different types of information represented in the ER diagram and the symbols used to represent them. How would you approach the diagramming process?
1-Draw The ER diagram on the problem of your choice, depicting the 1:1 , 1:M and...
1-Draw The ER diagram on the problem of your choice, depicting the 1:1 , 1:M and M:M relationship. 2-Explain with the pictorial representation the three schema architecture of DBMS.
Problem Definition: You have to design a feedback controller for the Boost Converter that link a...
Problem Definition: You have to design a feedback controller for the Boost Converter that link a voltage source ?? = 80 ± 20% to a load with dc output voltage of 380V. The maximum output current is 2.5A. Questions: 1- Design the Boost converter to satisfy the required output voltage and current. a. Determine the inductance value for continuous conduction mode (CCM). b. Determine a reasonable output voltage ripple and calculate the capacitance accordingly. c. Justify any assumption you made....
[Hash Tables] Given the following code in C++, implement the functions in table2.cpp. The first 2...
[Hash Tables] Given the following code in C++, implement the functions in table2.cpp. The first 2 files (table2.h, short story text file) are all fully coded and commented for convenience. *****I have given references that I've completed previously for the table2.cpp file, I just need help applying them. Will provide good rating, thanks****** -------------------------------------------------------------------------------------------------------------------------- table2.h (given file, do not edit): // FILE: table2.h // // ABSTRACT BASE CLASS: Table //    1. The number of records in the Table is...
In this problem you will design and implement C++ code that identifies overlap in strings. Specifically,...
In this problem you will design and implement C++ code that identifies overlap in strings. Specifically, design and implement a C++ program that does the following: 1. Asks a user to input a filename and then opens that file. If the file open fails, then print the message “Unable to open file” and terminate the program using exit(1). 2. Reads the file contents, in order, into an array of strings. (See the file format explanation below.) 3. Computes the string...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT