Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Departmental Salary Insights | CTE Fundamentals and Syntax
Mastering Common Table Expressions (CTEs) in SQL
Sección 1. Capítulo 6
single

single

bookChallenge: Departmental Salary Insights

Desliza para mostrar el menú

Tarea

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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 6
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

some-alt