Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Departmental Salary Insights | CTE Fundamentals and Syntax
/
Mastering Common Table Expressions (CTEs) in SQL
Sektion 1. Kapitel 6
single

single

bookChallenge: Departmental Salary Insights

Stryg for at vise menuen

Opgave

Swipe to start coding

Create a query using nested CTEs to identify departments with an average employee salary above $60,000, and then list all employees working in those departments.

  • Calculate the average salary for each department.
  • Identify departments where the average salary is greater than $60,000.
  • Select all employees who belong to those departments, including their names, salary, and department name.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 6
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

some-alt