الانتقال إلى المحتوى
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.

سوال: ازاى احسب مرتب لاكبر 3 موظفين

Featured Replies

بتاريخ:

انا عايز ازاى احسب مرتب لاكبر 3 موظفين بييقبضوا مرتب

بتاريخ:

SELECT   empno,ename,sal
         FROM emp WHERE sal >= (SELECT MIN (sal)
                             FROM (SELECT   *
                                       FROM emp ORDER BY sal DESC)
                            WHERE ROWNUM <= 3)
     ORDER BY 3 DESC;



مع تحيات للجميع وربنا يوفقكم
أحمدمرجان
Development Team Leader

بتاريخ:

select ename ,sal from emp where sal in (select * from (select sal from emp where sal is not null order by sal desc) where rownum<=3)order by sal desc

بتاريخ:

SELECT employee_id,salary
FROM (select employee_id,salary
      from employees order by salary desc)
WHERE rownum<=3

بتاريخ:

بس ممكن تعديل على جملة الاخ:

SELECT EMPNO,SALARY FROM (SELECT ROWNUM,EMPNO,SALARY FROM EMP ORDER BY SALARY DESC)
WHERE ROWNUM <4

بتاريخ:

[color=royalblue][size=4][size=4][/size][font=arial]SELECT A.SAL
FROM (SELECT DISTINCT SAL FROM EMP) A,
(SELECT DISTINCT SAL FROM EMP) B
WHERE A.SAL > B.SAL
GROUP BY A.SAL
HAVING COUNT(B.SAL) > 8
[font=arial][/font][/font][/size][/color]

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

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

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

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.