You are given customer spend data across departments. Write a SQL query that returns each customer whose total spend is above the average spend of customers in the same department.
Problem
Task
You are given customer spend data across departments. Write a SQL query that returns each customer whose total spend is above the average spend of customers in the same department.
Practice SQLPostgreSQL
Open on desktop for the full SQL editor with syntax highlighting and autocomplete.