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

single

bookChallenge: Departmental Salary Insights

Glissez pour afficher le menu

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 6
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

some-alt