Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Employee Salary Reporting with CTEs | CTE Fundamentals and Syntax
Practice
Projects
Quizzes & Challenges
Вікторини
Challenges
/
Mastering Common Table Expressions (CTEs) in SQL
Секція 1. Розділ 2
single

single

bookChallenge: Employee Salary Reporting with CTEs

Свайпніть щоб показати меню

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 2
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt