ΉΣΛЯƬ々ΉΛᄃ𝐊ΣЯ
𝗪𝗲𝗹𝗰𝗼𝗺𝗲 𝘁𝗼 ΉΣΛЯƬ々ΉΛᄃ𝐊ΣЯ❤ 📚 Get regular updates for : 👇🏻 📍 Coding Interviews 📍 Coding Resources 📍 Notes 📍 Ebooks 📍 Internships 📍 Jobs and much more....✨ 🔗 Join & Share this channel with your buddies and college mates.
إظهار المزيد- المشتركون
- التغطية البريدية
- ER - نسبة المشاركة
جاري تحميل البيانات...
جاري تحميل البيانات...
SELECT
employee_id,
department_id,
salary,
AVG(salary) OVER (PARTITION BY department_id) AS avg_department_salary
FROM
employees;
In this example, the AVG function is used as a window function to calculate the average salary of employees within each department, without collapsing the rows into a single summary row.
Tip: Emphasize that window functions are powerful for performing calculations that require both detail and summary data, such as running totals, moving averages, or rank calculations within a specific partition of the dataset.
You can refer these SQL Interview Resources to learn more
Like this post if you want me to continue this SQL series 👍♥️
Share with credits: https://t.me/sqlspecialist
Hope it helps :)Power BI developerA professional specialize in designing and implementing business intelligence solutions using Microsoft Power BI. Should have a deep understanding of data modeling, data visualization, and data integration techniques.• Technical Expertise: In-depth knowledge of the Power BI platfor...
تسمح خطتك الحالية بتحليلات لما لا يزيد عن 5 قنوات. للحصول على المزيد، يُرجى اختيار خطة مختلفة.