🏠 Início
Avaliações
📊 Todos os Benchmarks 🦖 Dinossauro v1 🦖 Dinossauro v2 ✅ Aplicações To-Do List 🎨 Páginas Livres Criativas 🎯 FSACB - Showcase Definitivo 🌍 Benchmark de Tradução
Modelos
🏆 Top 10 Modelos 🆓 Modelos Gratuitos 📋 Todos os Modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de Prompts 📖 Glossário de IA 🔗 Links Úteis
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.