Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. List the department name and the number of faculties in each department. (Hint: aggregation function and group by) 2. List the name and job

1. List the department name and the number of faculties in each department. (Hint: aggregation function and group by)

2. List the name and job title of the faculties who received the salary raise. (Hint: table join FACULTY, JOB_TITLE and SALARY_RAISE)

3. List the name of the top 2 faculties who make the most salary. (Hint: Order by and Limit)

4. Use CTE ( WITH...AS...) to rewrite the query of #2 (list the name and job title of the faculties who received the salary raise.

5.List the name of the department that have less than 2 people. (Hint: aggregation and having)

6.List the total, average, max, and min salaries of all faculties, and rename the column names as total_salary, average_salary, highest_salary, lowest_salary. (Hint: aggregation and rename column)

7.The salary tiers are defined as:

Tier1: <=80000

Tier2: >80000 and <=95000

Tier3: >95000

List the name, salary, and salary tier for all faculties. (Hint: CASE statement)

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

50 Tips And Tricks For MongoDB Developers Get The Most Out Of Your Database

Authors: Kristina Chodorow

1st Edition

1449304613, 978-1449304614

More Books

Students also viewed these Databases questions

Question

Write formal proposal requests.

Answered: 1 week ago

Question

Write an effective news release.

Answered: 1 week ago

Question

Identify the different types of proposals.

Answered: 1 week ago