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...
Draw an ER diagram with these attributes ( ER diagram for SQL for a library database)...
Draw an ER diagram with these attributes ( ER diagram for SQL for a library database) DRAW ER DIAGRAM AS ONE FULL LIBRARY SYSTEM, NOT DIFFERENT FOR EACH ATTRIBUTE. Attributes :           Customer Cust_ID: key identifier, required, simple, single valued Cust_Name{ first name, last name}: Key Identifier, simple;composite, multivaried   Address{street, city,zip,state}: Customer address, required, composite, single can be derived from zip (placeholder, there should be another attribute here to represent the books taken out by the customer. Not sure.)           Inventory Book_ID:...
Draw an ER diagram with these attributes ( ER diagram for SQL for a library database)...
Draw an ER diagram with these attributes ( ER diagram for SQL for a library database) Attributes :           Customer Cust_ID: key identifier, required, simple, single valued Cust_Name{ first name, last name}: Key Identifier, simple;composite, multivaried   Address{street, city,zip,state}: Customer address, required, composite, single can be derived from zip (placeholder, there should be another attribute here to represent the books taken out by the customer. Not sure.)           Inventory Book_ID: Key identifier, required, simple single valued Book_Name: Key identifier, required, simple, single-valued Genre:...
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....
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...
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.
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.
Using block diagram, design the architectural layout of the simplified model of a symmetric Cryptosystem. Implement...
Using block diagram, design the architectural layout of the simplified model of a symmetric Cryptosystem. Implement a cryptosystem columnar transposition technique with a 4 x 4 matrix arrangement. Test your code with ‘cryptography’ as the plaintext. prefer python but it doesn't matter.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT