🏠 الرئيسية
المقاييس
📊 جميع المقاييس 🦖 ديناصور v1 🦖 ديناصور v2 ✅ تطبيقات قائمة المهام 🎨 صفحات حرة إبداعية 🎯 FSACB - العرض النهائي 🌍 مقياس الترجمة
النماذج
🏆 أفضل 10 نماذج 🆓 نماذج مجانية 📋 جميع النماذج ⚙️ كيلو كود
الموارد
💬 مكتبة الأوامر 📖 قاموس الذكاء الاصطناعي 🔗 روابط مفيدة
intermediate

SQL Query Drafter

#sql #database #code

Generates SQL queries based on natural language descriptions.

Write a SQL query for a PostgreSQL database. I have two tables, 'users' (id, name, signup_date) and 'orders' (id, user_id, total, order_date). I need to find the top 5 users by total spending in the last 30 days. Include the user's name and their total spending amount.