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

من يستطيع كتابة هذه الـselect وله جزيل الشكر

Featured Replies

بتاريخ:

عندي 3 جداول
الجدول الأول
Student(studentNo,studentName,graduationYear,graduationSemester,totalAverage,sec
tionNumber)
الجدول الثاني
Section(sectionNumber,SectionName,collegeNumber)
الجدول الثالث
College(collegeNumber,CollegeName)

أريد تعليمة SQL
بحيث تجلب لي أسماء الطلبة الثلاث الأوائل في كل سنة وفي كل فصل وفي كل كلية وفي كل تخصص بناءً على الـ totalAverage

بتاريخ:
  • كاتب الموضوع

ما في حد

بتاريخ:

عزيزى متهيالى انت محتاج تتعامل مع ال top n analysis

بتاريخ:

السلام عليكم ورحمه الله وبركاته
إليك طريقه للحل ولكن عذرا انا استخدمت جدول emp فى scott ,والجمله المرسله تاتى باعلى ثلاث مرتبات على مستوى كل إداره

select EMPNO ,ENAME,deptno,sal from emp where sal in (select max(sal) from emp group by deptno)
union
 select EMPNO ,ENAME,deptno,sal from emp where sal in (select max(sal) from emp emp1 where emp1.sal <
(select max(sal) from emp where emp1.deptno=emp.deptno
group by deptno) group by emp1.deptno)
union
select e1.EMPNO ,e1.ENAME,e1.deptno,e1.sal from emp e1 where e1.sal in (select max(emp1.sal) from emp emp1 where emp1.sal <
(select max(emp2.sal) from emp emp2 where emp1.deptno=emp2.deptno and emp2.sal<
(select  max(sal) from emp where emp2.deptno=emp.deptno
group by deptno)group by emp2.deptno) group by emp1.deptno)
order by 3,4




ويوجد افكار اخى ممكن تكون اسهل من كده وجرب وانتظر ردك

بتاريخ:
  • كاتب الموضوع

شكراً للردود

الله يجزيك الخير يا سيد amr

بتاريخ:
  • كاتب الموضوع

الله يجزيك الخير يا سيد amr
لكن عندما قمت بتجريبها على الجداول الموجودة عندي لم تعمل بشكل سليم
كمات عملت على جدول الـ emp

بتاريخ:
  • كاتب الموضوع

ايش بالنسبة

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

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

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

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

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

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.