display the first and last names, hire dates, and number of years employed for all employees who have worked for the organization more than 15 years. Order by the most recent hire date.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Based on the ERD below, display the first and last names, hire dates, and number of years employed for all employees who have worked for the organization more than 15 years. Order by the most recent hire date. 

The image depicts an Entity-Relationship Diagram (ERD) with four tables, illustrating a database structure for a company's job assignment system. Below is a detailed explanation of each table along with the relationships among them:

### Tables and Attributes:

1. **JOB Table**  
   - **Attributes:**
     - **JOB_CODE:** Primary Key, uniquely identifies each job.
     - **JOB_DESCRIPTION:** Describes the job role.
     - **JOB_CHG_HOUR:** Indicates the charge per hour for the job.
     - **JOB_LAST_UPDATE:** Records the last update time of the job information.

2. **EMPLOYEE Table**
   - **Attributes:**
     - **EMP_NUM:** Primary Key, uniquely identifies each employee.
     - **EMP_LNAME:** Last name of the employee.
     - **EMP_FNAME:** First name of the employee.
     - **EMP_INITIAL:** Middle initial of the employee.
     - **EMP_HIREDATE:** Date the employee was hired.
     - **JOB_CODE:** Foreign Key, links to the JOB table.
     - **EMP_YEARS:** Number of years the employee has worked.

3. **ASSIGNMENT Table**
   - **Attributes:**
     - **ASSIGN_NUM:** Primary Key, uniquely identifies each assignment.
     - **ASSIGN_DATE:** Date of the assignment.
     - **PROJ_NUM:** Foreign Key, links to the PROJECT table.
     - **EMP_NUM:** Foreign Key, links to the EMPLOYEE table.
     - **ASSIGN_JOB:** Job assigned to the employee.
     - **ASSIGN_CHG_HR:** Charge per hour for the assignment.
     - **ASSIGN_HOURS:** Number of hours assigned.
     - **ASSIGN_CHARGE:** Total charge for the assignment.

4. **PROJECT Table**
   - **Attributes:**
     - **PROJ_NUM:** Primary Key, uniquely identifies each project.
     - **PROJ_NAME:** Name of the project.
     - **PROJ_VALUE:** Budgeted value for the project.
     - **PROJ_BALANCE:** Remaining balance for the project.
     - **EMP_NUM:** Links to the employee involved with the project.

### Relationships:

- The **JOB** table is connected to the **EMPLOYEE** table via the **JOB_CODE**.
- The **EMPLOYEE** table connects to the **ASSIGNMENT** table through **EMP_NUM**, facilitating relationships between employees and their assignments.
- The
Transcribed Image Text:The image depicts an Entity-Relationship Diagram (ERD) with four tables, illustrating a database structure for a company's job assignment system. Below is a detailed explanation of each table along with the relationships among them: ### Tables and Attributes: 1. **JOB Table** - **Attributes:** - **JOB_CODE:** Primary Key, uniquely identifies each job. - **JOB_DESCRIPTION:** Describes the job role. - **JOB_CHG_HOUR:** Indicates the charge per hour for the job. - **JOB_LAST_UPDATE:** Records the last update time of the job information. 2. **EMPLOYEE Table** - **Attributes:** - **EMP_NUM:** Primary Key, uniquely identifies each employee. - **EMP_LNAME:** Last name of the employee. - **EMP_FNAME:** First name of the employee. - **EMP_INITIAL:** Middle initial of the employee. - **EMP_HIREDATE:** Date the employee was hired. - **JOB_CODE:** Foreign Key, links to the JOB table. - **EMP_YEARS:** Number of years the employee has worked. 3. **ASSIGNMENT Table** - **Attributes:** - **ASSIGN_NUM:** Primary Key, uniquely identifies each assignment. - **ASSIGN_DATE:** Date of the assignment. - **PROJ_NUM:** Foreign Key, links to the PROJECT table. - **EMP_NUM:** Foreign Key, links to the EMPLOYEE table. - **ASSIGN_JOB:** Job assigned to the employee. - **ASSIGN_CHG_HR:** Charge per hour for the assignment. - **ASSIGN_HOURS:** Number of hours assigned. - **ASSIGN_CHARGE:** Total charge for the assignment. 4. **PROJECT Table** - **Attributes:** - **PROJ_NUM:** Primary Key, uniquely identifies each project. - **PROJ_NAME:** Name of the project. - **PROJ_VALUE:** Budgeted value for the project. - **PROJ_BALANCE:** Remaining balance for the project. - **EMP_NUM:** Links to the employee involved with the project. ### Relationships: - The **JOB** table is connected to the **EMPLOYEE** table via the **JOB_CODE**. - The **EMPLOYEE** table connects to the **ASSIGNMENT** table through **EMP_NUM**, facilitating relationships between employees and their assignments. - The
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY