Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 5). Answer the questions according to following tables: EMPLOYEES NAME JOHN MARY ROBERT SUSAN HARRY SURNAME SALARY DEPARTMENT ENTRY YEAR PAUL 5000 ACCOUNTING 1998

image text in transcribed
Question 5). Answer the questions according to following tables: EMPLOYEES NAME JOHN MARY ROBERT SUSAN HARRY SURNAME SALARY DEPARTMENT ENTRY YEAR PAUL 5000 ACCOUNTING 1998 SMITH 9600 HEAD QUARTER 2000 HOPKINS 4500 PRODUCTION 2001 MILLER 7000 IT 1998 BROWN 9500 IT 1999 a) By Using an appropriate SQL Aggregate function and GROUP BY statement, classify the Total amount of SALARY paid in each DEPARTMENT (7 Points) DEPARTMENTS NAME LOCATION ACCOUNTING LONDON HEAD QUARTER (LONDON PRODUCTION CARDIFF IT LEEDS b) By Using a Nested Query on EMPLOYEES, Show NAMEs and SURNAMES of EMPLOYEES who are earning more than AVERAGE SALARIES. (7 Points) c) By JOINING two tables with SQL Statement, show the NAMEs of the EMPLOYEES who are working in LONDON (in DEPARTMENTS) (6 Points)

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

Step: 3

blur-text-image

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

How many stores exceeded the KPI target in March 2015?

Answered: 1 week ago