بتاريخ: 13 يوليو 201411 سنة comment_252885 يا اخوان بدي department nam و مجموع ال رواتب لكل قسم وعدد الموظفين بكل قسم تقديم بلاغ
بتاريخ: 13 يوليو 201411 سنة comment_252886 ممكن بالطريقة دية بس دية مش حتظهر قيم ال NULL select department_name,sum(salary) "total salary",count(employee_id) "total employees" from employees e join departments d on e.department_id = d.department_id group by department_name; لو عايز القيم ال null تظهر نستخدم outer join select department_name,sum(salary) "total salary",count(employee_id) "total employees" from employees e full outer join departments d on e.department_id = d.department_id group by department_name; تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.