VIP 👤
🏠 Strona Główna
Benchmarki
📊 Wszystkie benchmarki 🦖 Dinozaur v1 🦖 Dinozaur v2 ✅ Aplikacje To-Do List 🎨 Kreatywne wolne strony 🎯 FSACB - Ostateczny pokaz 🌍 Benchmark tłumaczeń
Modele
🏆 Top 10 modeli 🆓 Darmowe modele 📋 Wszystkie modele ⚙️ Kilo Code
Zasoby
💬 Biblioteka promptów 📖 Słownik AI 🔗 Przydatne linki 🔌 API i routery AI
Medium

Advanced SQL Query

#sql #database #query

Write a complex SQL query involving joins and aggregation.

Write a SQL query for a database with two tables: 'Employees' (id, name, department_id) and 'Salaries' (employee_id, amount, year). The query should list the names of employees in the 'Sales' department who earned an average salary higher than $50,000 over the years available in the database. Sort the results by the average salary in descending order.