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

single

bookChallenge: Departmental Salary Insights

Deslize para mostrar o menu

Tarefa

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 6
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

some-alt