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

single

bookChallenge: Multi-Step Employee Analysis

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

Завдання

Swipe to start coding

Write a query using two CTEs to analyze employee sales performance relative to their department. The first CTE should calculate the total sales amount for each employee. The second CTE should determine the average total sales per department and select employees whose total sales exceed their department's average.

  • Calculate each employee's total sales.
  • Calculate the average total sales for each department.
  • Select employees whose total sales are greater than their department's average.

Рішення

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

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

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

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

single

Запитати АІ

expand

Запитати АІ

ChatGPT

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

some-alt