الانتقال إلى المحتوى
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 لعرض مجموع قيمة مبيعات فروع الشركة في المحافظات خلال شهر معين (متغير) والشهر السابق له مباشرة على سطر واحد كما يلي:

 

الفرع                  Jan-15                     Dec-14

علما بأن البيانات كلها في جدول واحد فقط (جدول المبيعات) 

بتاريخ:

create table sales_tab(month number,amount number,branch varchar2(200));



select
a.branch,
sum(a.amount) first_month_amount,
a.month first_month,
(select sum(c.amount) from sales_tab c where c.month=a.month-1 and a.branch=c.branch) second_month_amount,
(select b.month from sales_tab b where b.month=a.month-1 and a.branch=b.branch) second_month

from sales_tab a
where a.month=2
group by month,branch

بتاريخ:

شراح الفكر ة على ال HR لنقدر نكتبلك الكوير وتشوفه عملياً

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

جزاكم الله خيرا .. جملة الأخ  haboos قريبة من الذي اريده وفعلا عدلت عليها واشتغلت معايا

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

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

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

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

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

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.