Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Employee Salary Reporting with CTEs | CTE Fundamentals and Syntax
Mastering Common Table Expressions (CTEs) in SQL
Seksjon 1. Kapittel 2
single

single

bookChallenge: Employee Salary Reporting with CTEs

Sveip for å vise menyen

Oppgave

Swipe to start coding

Write a query using a Common Table Expression (CTE) to produce a report of all employees whose salary is above the average salary of all employees in the company. The report must display each qualifying employee's first name, last name, department name, and salary.

  • Use a CTE to calculate the average salary of all employees.
  • Select only those employees whose salary is greater than the average salary calculated in the CTE.
  • Display the employee's first name, last name, department name, and salary.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 2
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

some-alt