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

الناتج مش راضى يظهر مش عارف ليه

Featured Replies

بتاريخ:

الكود دة انا عملتة بس عايز النتيجة تظهر فى خانة معينة هى L1

declare
s number;
d number;
 
begin
 
 
select sum(drug_d.count) 
into s 
from drug_d 
where patient_code=:DRUG_BILL.patient_code  
AND ITEM=:DRUG_D.ITEM
 ;
select sum (P_RET_D.count) 
into d 
from  P_RET_D  
where patient_code=:DRUG_BILL.patient_code  
AND ITEM=:DRUG_D.ITEM;
 
:L1 := D - S;  
 
END;

مع العلم انا عاملة على تريجر when- validate-item

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

بتاريخ:

جرب السيليكتات دي شوفها بتجيب ايه في السكول بلس .

هتلاقى واحدة فيهم بتجيب null ولا حاجة

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

فعلا فيهم واحد null طيب اعمل nvlدى هيبقى الحل دى معنى كلام حضرتك مش كدة

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

بتاريخ:

مثلا

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

كتبت الكود كلة من جديد بالشكل دة وبردة مش عايز يطلع الناتج

declare
s number;
d number;

begin

if :global.operation=1 then
select sum(NVL(drug_d.count,0))
into s
from drug_d
where patient_code=:DRUG_BILL.patient_code
AND ITEM=:DRUG_D.ITEM
;
select sum (NVL(P_RET_D.count,0))
into d
from P_RET_D
where patient_code=:DRUG_BILL.patient_code
AND ITEM=:DRUG_D.ITEM;
if d= null then d:=0;
else
if s= null then s:=0;
end if;
:L1 := s-d;
end if;
end if;
END;

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

بتاريخ:

ما طبيعي
مفيش حاجة اسمها لو كذا بيساوي NULL ‎ والسلكتات بتعتك بايظة جرب بتاعت ال NULL هتلاقيها بطلع زيرو

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

كلامك صح ياباشا والحمد لله لقيت الحل بمساعدتك

declare
s number;
d number :=0;

begin
if :global.operation=1 then
select NVL(sum(drug_d.count),0)
into s
from drug_d
where patient_code=:DRUG_BILL.patient_code
AND ITEM=:DRUG_D.ITEM
;
select NVL(sum (P_RET_D.count),0)
into d
from P_RET_D
where patient_code=:DRUG_BILL.patient_code
AND ITEM=:DRUG_D.ITEM;
:L1:= S-D;


END IF;
END;

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

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

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

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

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

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.