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

single

bookChallenge: Multi-Step Employee Analysis

Scorri per mostrare il menu

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 5
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

some-alt