Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Multi-Step Employee Analysis | CTE Fundamentals and Syntax
Mastering Common Table Expressions (CTEs) in SQL
Abschnitt 1. Kapitel 5
single

single

bookChallenge: Multi-Step Employee Analysis

Swipe um das Menü anzuzeigen

Aufgabe

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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 5
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt