Based on the ERD below, display the assignment number, employee number and assigned hours for either assign job 501 or 502 with assigned hours more than 3.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Based on the ERD below, display the assignment number, employee number and assigned hours for either assign job 501 or 502 with assigned hours more than 3.

The image displays an Entity-Relationship Diagram (ERD) showcasing the relationships among four database tables: JOB, EMPLOYEE, ASSIGNMENT, and PROJECT.

**Tables and Attributes:**

1. **JOB Table**
   - **Primary Key:**
     - JOB_CODE
   - **Attributes:**
     - JOB_DESCRIPTION
     - JOB_CHG_HOUR
     - JOB_LAST_UPDATE

2. **EMPLOYEE Table**
   - **Primary Key:**
     - EMP_NUM
   - **Attributes:**
     - EMP_LNAME
     - EMP_FNAME
     - EMP_INITIAL
     - EMP_HIREDATE
     - JOB_CODE (Foreign key referencing JOB table)
     - EMP_YEARS

3. **ASSIGNMENT Table**
   - **Primary Key:**
     - ASSIGN_NUM
   - **Attributes:**
     - ASSIGN_DATE
     - PROJ_NUM (Foreign key referencing PROJECT table)
     - EMP_NUM (Foreign key referencing EMPLOYEE table)
     - ASSIGN_JOB
     - ASSIGN_CHG_HR
     - ASSIGN_HOURS
     - ASSIGN_CHARGE

4. **PROJECT Table**
   - **Primary Key:**
     - PROJ_NUM
   - **Attributes:**
     - PROJ_NAME
     - PROJ_VALUE
     - PROJ_BALANCE
     - EMP_NUM (Foreign key referencing EMPLOYEE table)

**Relationships:**
- The JOB table is linked to the EMPLOYEE table through the JOB_CODE attribute, representing a one-to-many relationship (indicated by '1' and '∞').
- The EMPLOYEE table connects to the ASSIGNMENT table using the EMP_NUM attribute, also in a one-to-many relationship.
- The PROJECT table is associated with the ASSIGNMENT table through the PROJ_NUM attribute in a one-to-many relationship.
- Additionally, the PROJECT table links back to the EMPLOYEE table with the EMP_NUM attribute, representing a potential one-to-many relationship.

This ERD outlines a database structure suitable for managing job assignments, tracking project details, and organizing employee information effectively.
Transcribed Image Text:The image displays an Entity-Relationship Diagram (ERD) showcasing the relationships among four database tables: JOB, EMPLOYEE, ASSIGNMENT, and PROJECT. **Tables and Attributes:** 1. **JOB Table** - **Primary Key:** - JOB_CODE - **Attributes:** - JOB_DESCRIPTION - JOB_CHG_HOUR - JOB_LAST_UPDATE 2. **EMPLOYEE Table** - **Primary Key:** - EMP_NUM - **Attributes:** - EMP_LNAME - EMP_FNAME - EMP_INITIAL - EMP_HIREDATE - JOB_CODE (Foreign key referencing JOB table) - EMP_YEARS 3. **ASSIGNMENT Table** - **Primary Key:** - ASSIGN_NUM - **Attributes:** - ASSIGN_DATE - PROJ_NUM (Foreign key referencing PROJECT table) - EMP_NUM (Foreign key referencing EMPLOYEE table) - ASSIGN_JOB - ASSIGN_CHG_HR - ASSIGN_HOURS - ASSIGN_CHARGE 4. **PROJECT Table** - **Primary Key:** - PROJ_NUM - **Attributes:** - PROJ_NAME - PROJ_VALUE - PROJ_BALANCE - EMP_NUM (Foreign key referencing EMPLOYEE table) **Relationships:** - The JOB table is linked to the EMPLOYEE table through the JOB_CODE attribute, representing a one-to-many relationship (indicated by '1' and '∞'). - The EMPLOYEE table connects to the ASSIGNMENT table using the EMP_NUM attribute, also in a one-to-many relationship. - The PROJECT table is associated with the ASSIGNMENT table through the PROJ_NUM attribute in a one-to-many relationship. - Additionally, the PROJECT table links back to the EMPLOYEE table with the EMP_NUM attribute, representing a potential one-to-many relationship. This ERD outlines a database structure suitable for managing job assignments, tracking project details, and organizing employee information effectively.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Based on the ERD below, for each project calculate the difference between the project value and the project balance. Display the result in a new column name “Remaining Balance”. Include the project number and project name in the result output.

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Basic sql queries
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education