Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with SQL coding problems. Although the departments table has 27 records, not every defined department has employees in it. Write down the

Please help me with SQL coding problems.

Although the departments table has 27 records, not every defined department has employees in it. Write down the SQL to show the unique department_id for all the departments which has employees in it.

2.Write down the SQL to show all the employee information for those whose department_id is 60.

4. Write down the SQL to show the first name and last name for those employees satisfying one of the following conditions (1) hire_date is after 01/01/2008 and before 12/31/2008, (2)salary is above 8000

5.Write down the SQL to show the average salary of employees whose hire_date is after 01/01/2008 and before 12/31/2008. (Hint: 1 record)

6.Write down the SQL to show the full name (in one attribute) and hire_date of employees, and sortrecords according to hire_date in a descending orde

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

Students also viewed these Databases questions

Question

=+j Understand different types of regions in the world.

Answered: 1 week ago