الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

عايز اعرف اسم القسم الذى به اكبر عدد موظفين

Featured Replies

بتاريخ:

السلام عليكم ورحمه الله
الاعضاء الاعزاء
تحية طيبة وبعد
عايز اعرف اسم القسم الذى به اكبر عدد موظفين
مع التأكيد على انه اسم القسم وليس رقمه
وشكرا

بتاريخ:

السلام عليكم ورحمة الله وبركاتة
هنفرض اننا بنشتغل على اسكيما ال scott
والجدوال بتاعتنا هي emp,dept



select e.deptno,d.dname, count(e.deptno) emoployee_number
from emp e,dept d
where e.deptno=d.deptno
group by e.deptno,d.dname
having

count(e.deptno) =
( select max(cnt) from
( select deptno, count(deptno) cnt
from emp
group by deptno
)
);

ارجو من سيادتكم الدعاء لى ولوالدى بالخير

بتاريخ:

اخونا وليد جزاك الله خيرا كلامك مضبوط

  • بعد 2 أسابيع...
بتاريخ:

SELECT COUNT(EMPLOYEES.EMPLOYEE_ID)AS EMPLOYEES,departments.department_name AS DEPARTMENTS

FROM EMPLOYEES , departments

WHERE employees.department_id = departments.department_id

GROUP BY departments.department_name

;ORDER BY 1 DESC

تم تعديل بواسطة ahmed.arafa

بتاريخ:


SELECT COUNT(EMPLOYEES.EMPLOYEE_ID)AS EMPLOYEES,departments.department_name AS DEPARTMENTS
FROM EMPLOYEES , departments
WHERE employees.department_id = departments.department_id
GROUP BY departments.department_name
HAVING COUNT(employee_id) IN (SELECT MAX(COUNT(EMPLOYEE_ID))FROM EMPLOYEES
;(GROUP BY department_id

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.