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

مساعدة فى استخدام group by

Featured Replies

بتاريخ:

عندى جدول اسمه رصيد resed

cod_hal


nam_hal


sarf_hal


sad_hal


(resed_f default sum(sarf_hal)-sum(sad_hal



لما بخش اعمل تجميع لعمود)sarf_hal و عمود ( sad_hal الاقى عمود nam_hal يتكرر


select cod_hal,nam_hal,sum(sarf_hal),sum(sad_hal) ,resef_f from resed


where cod_hal = cod_hal
group by cod_hal,nam_hal,resed_f



الاقى حقل nam_hal بتكرر كذا مرة على جميع حقول التجميع


دخلت على copies وعملتها 1
ومافيش حل
عاوز حل فى هذه المشكلة البسيطة


والشكل ده يوضح النتيجة




Cod_hal
Nam_hal
Sum(sad_hal)
Sum(sarf_hal)
Resed_f
1
محمود السيد محمود
50
450
400
2
احمد السيد حسانين ابراهيم
10
300
290
1
محمود السيد محمود
50
450
400
2
احمد السيد حسانين ابراهيم
10
300
290

بتاريخ:

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




select cod_hal,nam_hal,sum(sarf_hal),sum(sad_hal) , sum(sarf_hal) - sum(sad_hal) resed_f
from resed
group by cod_hal,nam_hal

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

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

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

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

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

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.