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

Join

Featured Replies

بتاريخ:

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

اقوم بعمل جمع فيلد من 7 جداول
مع العلم السنة والشهر forign_key
وعند عمل الربط بهذه الطريقه يحدث
cartsiean
فما الحل
هل outer_join
أو veiow
?????
حيث ان المطلوب قائمة جدوليه بالشهور لهذه السنة وامامها مجموع كل عنصر خلال هذا الشهر وهكذا في بقية الشهور

=====

SELECT   m.acc_tear_year_code, m.month_code, SUM (NVL (arri_value, 0)) arri,
        SUM (NVL (des_value, 0)) desi, SUM (NVL (gene_value, 0)) gener,
        SUM (NVL (tttt_value, 0)) tot,
        SUM (NVL (phn_price, 0) * NVL (satae, 0)) state,
        SUM (NVL (no_st_emp_day, 0)) employees
   FROM acc_months m,
        acc_arri v,
        acc_desi d,
        acc_gener g,
        acc_tttt c,
        acc_phn h,
        acc_move z
  WHERE m.acc_tear_year_code = v.acc_tear_year_code AND m.month_code = v.acc_month_month_code AND m.acc_tear_year_code = d.acc_tear_year_code AND m.month_code = d.acc_month_month_code AND m.acc_tear_year_code = g.acc_tear_year_code AND m.month_code = g.acc_month_month_code AND m.acc_tear_year_code = c.acc_tear_year_code AND m.month_code = c.acc_month_month_code AND m.acc_tear_year_code = h.year_code AND m.month_code = h.month_code AND m.acc_tear_year_code = z.acc_tear_year_code AND m.month_code = z.acc_month_month_code
GROUP BY m.acc_tear_year_code, m.month_code;



بتاريخ:
  • كاتب الموضوع
الاخوة الزملاء
السلام عليكم ورحمة الله وبركاته

اقوم بعمل جمع فيلد من 7 جداول
مع العلم السنة والشهر forign_key
وعند عمل الربط بهذه الطريقه يحدث
cartsiean
فما الحل
هل outer_join
أو veiow
?????
حيث ان المطلوب قائمة جدوليه بالشهور لهذه السنة وامامها مجموع كل عنصر خلال هذا الشهر وهكذا في بقية الشهور

=====

SELECT   m.acc_tear_year_code, m.month_code, SUM (NVL (arri_value, 0)) arri,
        SUM (NVL (des_value, 0)) desi, SUM (NVL (gene_value, 0)) gener,
        SUM (NVL (tttt_value, 0)) tot,
        SUM (NVL (phn_price, 0) * NVL (satae, 0)) state,
        SUM (NVL (no_st_emp_day, 0)) employees
   FROM acc_months m,
        acc_arri v,
        acc_desi d,
        acc_gener g,
        acc_tttt c,
        acc_phn h,
        acc_move z
  WHERE m.acc_tear_year_code = v.acc_tear_year_code AND m.month_code = v.acc_month_month_code AND m.acc_tear_year_code = d.acc_tear_year_code AND m.month_code = d.acc_month_month_code AND m.acc_tear_year_code = g.acc_tear_year_code AND m.month_code = g.acc_month_month_code AND m.acc_tear_year_code = c.acc_tear_year_code AND m.month_code = c.acc_month_month_code AND m.acc_tear_year_code = h.year_code AND m.month_code = h.month_code AND m.acc_tear_year_code = z.acc_tear_year_code AND m.month_code = z.acc_month_month_code
GROUP BY m.acc_tear_year_code, m.month_code;







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

اين الردود يا شباب

بتاريخ:

i think you have to recheck the foreign keys for each table for example are you sure that the foreign in table employess is the year and month only


plz send the structure of the tables you joined

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

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

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

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

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

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.