🏠 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
Intermediate

SQL Query Constructor

#database #coding #data

Generate SQL queries based on natural language requirements.

Write a SQL query for a PostgreSQL database. The database has two tables: 'employees' (id, name, department_id, salary) and 'departments' (id, name). The query should return the names of all departments and the average salary of employees in those departments, but only include departments where the average salary is greater than 50,000. Order the results by average salary in descending order.