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

بتاريخ:

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

ارغب فى كتابة select statement لاختيار عدد معين السجلات تحت عدة شروط
جربت استخدام where rownum <1000 مثلا لكن المشكلة ان هذه تستعيد اول 1000 سجل و هذا لا يؤدى الغرض المنشود و هو

انا مجموعة السجلات يجب انا تكون ممثلة بناءاً على حقل معين
مثلا حقل المدينة
اذا كان الشرط city ='Alex' or city='cairo' or city ='port said' and rownum<1000
المشكله ان ممكن كل البيانات اللى ترجع تكون القاهرة لانها فى الاول
انا اريدها
333 من cairo
و333 من alex
و 333 من port said و هكذا
و شكرا افادكم الله

بتاريخ:

السلام عليكم
يمكنك استخدام أمر الunion

select empno,deptno from emp where deptno = 10 and rownum < 3
union
select empno,deptno from emp where deptno = 20 and rownum < 3
union
select empno,deptno from emp where deptno = 30 and rownum < 3


    EMPNO     DEPTNO
---------- ----------
     7369         20
     7499         30
     7521         30
     7566         20
     7782         10
     7839         10

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

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

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

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.