Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

SECTION A [20 Marks) The following are the ER Diagram for the HR Database and table structure for the employees. Write the query statements for

image text in transcribed
image text in transcribed
SECTION A [20 Marks) The following are the ER Diagram for the HR Database and table structure for the employees. Write the query statements for all the questions (Questions 1-4). HR DEPARTMENTS department id department name manager_id location_id LOCATIONS location_id street address postal code city state province country_id JOB_HISTORY employee id start date end_date job_id department_id COUNTRIES country id country name region_id EMPLOYEES employee id first name last name email phone number hire_date job_id salary commission pet manager_id department id JOBS job_id job_title min_salary max_salary REGIONS region_id region_name Figure 1 Employee table Structure Name Null? Type NOT NULL EMPLOYEE_ID FIRST NAME LAST_NAME EMAIL PHONE NUMBER HIRE DATE JOB_ID SALARY COMMISSION PCT MANAGER ID DEPARTMENT ID NOT NULL NOT NULL NOT NULL NOT NULL NUMBER (6) VARCHAR2 (20) VARCHAR2 (25) VARCHAR2 (25) VARCHAR2 (20) DATE VARCHAR2 (10) NUMBER (8,2) NUMBER (2,2) NUMBER (6) NUMBER (4) Figure 2 2. The HR department needs a report to display the employee number, last_name, and salary for all employees not in the departments 100 or 120 in ascending alphabetical order by last_name. Label these columns as EMPLOYEE#, NAME,MONTHLY SALARY. [4 Marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB.NET Databases

Authors: Thearon Willis

1st Edition

1594864217, 978-1594864216

Students explore these related Databases questions

Question

Persuading Your Audience Strategies for

Answered: 3 weeks ago