Question

New to DB's Please help!
You are designing and creating a database named COMPANY for an HR (Human Resource) Dept of a Software Consulting Company to mEntities: Employee Department Dependent Project Company Rules: Every employee should work for one department. Every employeesA department controlls projects A project can be controlled by only one department. Some departments are located in multipleExample of a Relationship with Cardinality between Employee and Departmemnt in E-R diagram Cardinality Ratio (1:1, 1:N, M:N sCompany EMPLOYEE NAME SSN BDATE SALARY ADDRESS SEX SUPERSSN John B Smith 123456789 09-Jan-55 731 Fondren, Houston, TX 30000 9

You are designing and creating a database named COMPANY for an HR (Human Resource) Dept of a Software Consulting Company to manage their employees and their assigned work (projects) in the company First Step to Design and Create a Database is Creating an E-R Diagram by Identifying Entities, Attributes and Relationships between any two Entities to Create a Company Database Scheme. 1. Create an E-R Diagram for the Company database from the raw data files given below and the business rules of the company given below using the symbols of E-R Diagram. To create the E-R Diagram for the Company database, we identified 4 Entities in class as below For each Entity given below: 2. Identify all the attributes for each Entity Identify the Attribute Types: Key attributes, Multi-Valued Attributes, Composite Attributes, and Derived Attributes. For any two entities and the given Compamy rules below: 4. Identify all relationships between 4 Entities below to create E-R Model for the Company database scheme
Entities: Employee Department Dependent Project Company Rules: Every employee should work for one department. Every employees should work on the projects. A Manager is the one who manages a Department Every Department can have only one manager. Supervisor is the one who supervises his/her employees
A department controlls projects A project can be controlled by only one department. Some departments are located in multiple office locations For each realtionship you identified Name the realtionship Identify the cardinality of the relationship between two entities as either 1 -1 1 - N or N N-M Identify participant types: Total or Partial Participation for each entity
Example of a Relationship with Cardinality between Employee and Departmemnt in E-R diagram Cardinality Ratio (1:1, 1:N, M:N since (name dname 1:1 Each dept has at lot budget did most one manager on ssn Manages Employees Manages Departments Translation to relational model? 1-to Many Many-to-1 Many-to-Many 1-to-1
Company EMPLOYEE NAME SSN BDATE SALARY ADDRESS SEX SUPERSSN John B Smith 123456789 09-Jan-55 731 Fondren, Houston, TX 30000 987654321 M Franklin T Wong 638 Voss, Houston, TX M 40000 333445555 08-Dec-45 888665555 Joyce A English 31-Jul-62 5631 Rice, Houston, TX 25000 453453453 333445555 Ramesh K Narayan 666884444 975 Fire Oak, Humble, TX M 38000 333445555 15-Sep-52 James E Borg 888665555 10-Nov-27 450 Stone, Houston, TX 55000 Jennifer S Wallace 20-Jun-31 291 Berry, Bellaire, TX 43000 888665555 987654321 Ahmad V Jabbar 980 Dallas, Houston, TX 987987987 29-Mar-59 M 25000 987654321 Alicia J Zelaya 999887777 19-Jul-58 3321 Castle, SPring, TX 25000 987654321 DEPARTMENT MGRSTARTDATE DLOCATION DNAME DNUMBER MGRSSN Headquarters 888665555 19-Jun-71 1 Houston |Stafford Administration 4 987654321 01-Jan-85 Research Bellaire, 5 333445555 22-May-78 Sugarland, Houston Cleveland Automation 7 123456789 06-Oct-05 DEPENDENT ESSN 123456789 123456789 DEPENDENT NAME Alice Elizabeth Michael Alices Joy Thecdore SEX BDATE 31-Dec-78 05-May-57 01 Jan-78 RELATIONSHIP Daughter Spouse F M Son 123456789 333445555 06-Apr-76 Daughter Spcuse Son 03-May-48 25-Oct-73 333445555 333445555 987654321 M Abner 29-Feb-32 Spouse PROJECT PNUMBER PNAME PLOCATION Belaire Sugarand DNUM ProductX ProductY Productz Computerization Reorganization Newbenetits Houston Stafford Houston Stattord 10 20 30 4 n
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Identified the types of attributes and and depicted for all the entities

identified the relationship between all the entities according to given rules

identified the cardinality according to given rules

Identified the participation according to given rules

identified weak entity dependant

3iddle neme Adiaai Sabay Ser Baate Loronon Name 1 NOmbo Deportment Employee / Monages Supervijee eoniols Sapry va ού M HOuns

Add a comment
Know the answer?
Add Answer to:
New to DB's Please help! You are designing and creating a database named COMPANY for an HR (Human Resource) Dept of...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • (SELECT pnumber FROM project, department, employee WHERE dnum=dnumber AND mgr_ssn=ssn AND lname='Smith') UNION (SELECT pnumber FROM...

    (SELECT pnumber FROM project, department, employee WHERE dnum=dnumber AND mgr_ssn=ssn AND lname='Smith') UNION (SELECT pnumber FROM project, works_on, employee WHERE pnumber=pno AND essn=ssnAND lname='Smith') Can you draw the relation step by step , how to solve it ?! Figure 5.6 One possible database state for the COMPANY relational database schema. EMPLOYEE Sex Salary Super ssn Dno B Smith 123456789 1965-01-09 731 Fondren, Houston, TX M 30000 3334455555 Ssn Fname Minit Lname John Franklin TWong 333445555 1955-12-08 638 Voss, Houston, TXM40000...

  • Please provide the relation algebra, the oracle SQL code and the output tuples for the following (Answer #6 only the BONUS question). I have the others actually I have the BONUS, but I want to compar...

    Please provide the relation algebra, the oracle SQL code and the output tuples for the following (Answer #6 only the BONUS question). I have the others actually I have the BONUS, but I want to compare with your solution to make sure I did it correctly. Thank you very much! LAB exercises 2 Write the Oracle DML query codes for the following questions and take the screen shot of the output. 1. Retrieve the name and address of all employees...

  • Search all employee who work total on all project less than 40 hrs from works_on table....

    Search all employee who work total on all project less than 40 hrs from works_on table. Please give me a query for this. Figure 5.6 One possible database state for the COMPANY relational database schema. EMPLOYEE Fname Minit Lname Sex Salary Super ssn Dno B Smith 123456789 1965-01-09 731 Fondren, Houston, TX M 30000 333445555 5 FranklinT Wong 333445555 1955-12-08 638 Voss, Houston, TX M 40000 888665555 5 JZelaya 999887777 1968-01-19 3321 Castle, Spring, TX F 25000 9876543214 JenniferSWallace 9876543211941-06-20...

  • Use the tables in the next page to answer the following questions in SQL. 1. Print...

    Use the tables in the next page to answer the following questions in SQL. 1. Print the names of employees who work in a project located in Houston. 2. Print the names of employees with no dependents. 3. Print the names of employees who are managers. 4. Print the names of employees who have more than one wife. 5. Print the names of employees who work in all the projects. EMPLOYEE Frame John Franklin Minit B T S K A...

  • Book: Fundamental of database systems Chapter 5 exercise 5.9 Figure 3-6 here provides examples on how...

    Book: Fundamental of database systems Chapter 5 exercise 5.9 Figure 3-6 here provides examples on how to answer this question: Photos - 20190906_111020[3691].jpg -ox See all photos + Add to Edit & Create Share : Q u ♡ 2 # d. A view that has the project name, controm of employees, and total hours worked per week on the project for each project with more than one employee working on it. 5.9. Consider the following view, DEPT SUMMARY, defined on...

  • I need help with the following SQL query for a company database (script given below). The...

    I need help with the following SQL query for a company database (script given below). The name of the Department. The number of employees working in that department. The number of different projects controlled by this department. The name of the project controlled by this department that has the maximum number of employees of the company working on it. The number of the above project. The cumulative sum of the number of employees of the company working on the projects...

  • write the following queris in sql : a) Using nested query , retreive the sependent names...

    write the following queris in sql : a) Using nested query , retreive the sependent names of male employees whose salary > 30000 b ) list the female employee, who are not managers EMPLOYEE Fname MinitLname John Franklin T Wong 333445555 1955-12-08 638 Voss, Houston, TX M 4 Ssn Sex Salary Super sen Dno B Smith 123456789 1965 01-09 731 Fondren, Houston, TX M 30000 13334455 AliciaZelaya 999987777 1968-01-19 3321 Castle, Spring, TXF Jennifer S Wallace 987654321 1941-06-20 291 Berry,...

  • Query 1: Retrieve names of all the projects as well as First and Last name of...

    Query 1: Retrieve names of all the projects as well as First and Last name of managers if they are working on any of these projects. Database: //STEP #1: CREATE TABLE employee ( fname varchar(15) not null, minit varchar(1), lname varchar(15) not null, ssn char(9), bdate date, address varchar(50), sex char, salary decimal(10,2), Super_ssn char(9), dno char(4), primary key (ssn)); CREATE TABLE department ( dname varchar(25) not null, dnumber char(4), Mgr_ssn char(9) not null, Mgr_start_date date, primary key (dnumber)); CREATE...

  • Query #2:       List the name of the project and total number of hours worked on by...

    Query #2:       List the name of the project and total number of hours worked on by all the employees on this project, also report the number of employees working on each project. Database: //STEP #1: CREATE TABLE employee ( fname varchar(15) not null, minit varchar(1), lname varchar(15) not null, ssn char(9), bdate date, address varchar(50), sex char, salary decimal(10,2), Super_ssn char(9), dno char(4), primary key (ssn)); CREATE TABLE department ( dname varchar(25) not null, dnumber char(4), Mgr_ssn char(9) not null,...

  • Oracle SQL Assignment 4 - List the name of supervisor who has more supervisee than other...

    Oracle SQL Assignment 4 - List the name of supervisor who has more supervisee than other supervisors. The supervisor would be the Mgr_ssn from the Department table. Each employee from the Employee table has a Super_ssn which would be their supervisor. 1 to this PC Picture Tools ew Help Acrobat Storyboarding FormatTell me what you want to de Picture Bonde A Bring Send Selection Tent Pictu楩Layout . | | Forward. Backward . Pane Figure 3.6 One possibie database state for...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT