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

كيف يتم اختيار اعلى 10 اصناف مبيعاً

Featured Replies

بتاريخ:

السلام عليكم ورحمة الله وبركاته



كيف يتم اختيار اعلى 10 اصناف مبييعاً



دالة MAX تعرض قيمة واحدة انا عايز اعرض اعلى 10 قيم



ارجو مساعدتي وشكراً لكم

بتاريخ:

select max(price) pr from product
where rownum<10
order by pr;

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

select max(price) pr from product
where rownum<10
order by pr;


شكراً أخي الكريم


لردك ومحاولة مساعدتي


ولكن هذا الأمر يحدد قيمة واحدة فقط في حين كان سؤالي عن أعلى 10 قيم

تم تعديل بواسطة az123

بتاريخ:

السلام عليكم ورحمة الله

اليك هذا المثال على الموظفين اصحاب اعلى 10 رواتب ... يمكنك اعادة كتابة الأمر حسب اسم الجدول واسماء الأعمدة بالجدول الذي لديك


select first_name , salary , rownum
from (select first_name , salary from employees order by salary desc)
where rownum <= 10 ;

FIRST_NAME			   SALARY	 ROWNUM
-------------------- ---------- ----------
Steven					24000		  1
Neena					 17000		  2
Lex					   17000		  3
John					  14000		  4
Karen					 13500		  5
Michael				   13000		  6
Shelley				   12000		  7
Nancy					 12000		  8
Alberto				   12000		  9
Lisa					  11500		 10

10 rows selected.

بتاريخ:

انا اسف على الرد السريع من غير تاكد
select column from table
where rownum<11
order by column desc

تم تعديل بواسطة amrwebas

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

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

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

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

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

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.