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

questions have been asked by Management in the latest business performance review. You have to address the below questions in chronological order. Based

 questions have been asked by Management in the latest business performance review. 

 

You have to address the below questions in chronological order. 

 

Based on the Database Schema diagram below it is up to you to determine which table should be queried. 

 

 

Type your response in the Answer column and upload the file on PRISM platform for verification. 

 

Note: You must open this PDF in Adobe Reader to type your answer. You cannot type when you open this PDF in web browser. 

 

Management Request 

Hint 

Answer 

Management would like a report showing the DEPARTMENTS in the business. This should include the DEPARTMENT 

NUMBER and NAME only. 

 

Use the schema prefix in your table reference e.g. 

EMPLOYEES.SALARIES 

 

           Answer

Management is interested in the Finance department and would like to see the Employee Numbers for all Managers in the Finance department. 

 

Perform a Query that returns the Employee Number only for managers that are in the Finance department - this should include all managers past and present. 

 

Use the schema prefix in your table reference e.g. EMPLOYEES.SALARIES 

Use the WHERE clause with the department code for Finance in the search condition in the target table 

           Answer

Based on your result from the previous question management are interested in Employee 110114. They would like to know the name and gender of this employee. 

 

Perform a query that returns the first name, last name 

DEPT_EMP EMP_NO DEPT_NO FROM_DATE TO_DATE INT PK CHAR(4) PK DATE DATE DEPARTMENTS DEPT_NO CHAR(4) PK 

You will need to use the 

WHERE clause 

        Answer

DEPT_EMP EMP_NO DEPT_NO FROM_DATE TO_DATE INT PK CHAR(4) PK DATE DATE DEPARTMENTS DEPT_NO CHAR(4) PK DEPT_NAME VARCHAR(40) EMPLOYEES EMP_NO BIRTH DATE FIRST_NAME LAST_NAME GENDER HIRE_DATE DEPT MANAGER EMP_NO DEPT_NO INT PK DATE VARCHAR(14) VARCHAR(16) ENUM('M','F') DATE FROM_DATE TO_DATE INT PK CHAR(4) PK DATE DATE SALARIES EMP_NO SALARY FROM_DATE TO_DATE EMP_NO TITLE FROM_DATE TO_DATE TITLES INT PK INT DATE PK DATE INT PK VARCHAR(50) PK DATE PK DATE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

It appears that youve shared a task that includes executing SQL queries based on a database schema a... 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

Auditing a risk based approach to conducting a quality audit

Authors: Karla Johnstone, Audrey Gramling, Larry Rittenberg

9th edition

9781133939160, 1133939155, 1133939163, 978-1133939153

More Books

Students explore these related Databases questions