بتاريخ: 19 أكتوبر 200916 سنة comment_173501 select b.description,sum(TRANSACTION_QUANTITY),b.segment1 from MTL_MATERIAL_TRANSACTIONS a,mtl_system_items_b b where a.inventory_item_id=b.inventory_item_id and a.organization_id=b.organization_id and a.organization_id=: P1 and b.segment1 between : P2 and : P3 group by b.description ,b.segment1 انا كتبت الاستعلام دة بس عايز اليوزر لما يسيب : P2و : P3 فاضى يجيب كل الداتا ازاى اقدر اعملهامثلا يدخل :P2 ويسيب : P3 فاضى فيجيب كل الداتا من : P2 حتى الاخر تقديم بلاغ
بتاريخ: 19 أكتوبر 200916 سنة comment_173511 hiplease accept me friend for you this is very simple query you should be in the next time depend on your selfe more ok ((b.segment1 between : P2 and : P3) or( : P2 is null ) or( : P3 is null )) تم تعديل 19 أكتوبر 200916 سنة بواسطة topone تقديم بلاغ
بتاريخ: 19 أكتوبر 200916 سنة كاتب الموضوع comment_173512 i made that before you said to mebut it doesnt work تقديم بلاغ
بتاريخ: 19 أكتوبر 200916 سنة comment_173513 down تم تعديل 19 أكتوبر 200916 سنة بواسطة PALI.ORACLE تقديم بلاغ
بتاريخ: 19 أكتوبر 200916 سنة comment_173515 جرب هيك: Nvl(b.segment1,0) between Nvl(:P2, Nvl(b.segment1,0)) and Nvl(:P3, Nvl(b.segment1,0)) تقديم بلاغ
بتاريخ: 19 أكتوبر 200916 سنة comment_173518 i give you sir statment 100% it's correct just try tested select b.description,sum(TRANSACTION_QUANTITY),b.segment1 from MTL_MATERIAL_TRANSACTIONS a,mtl_system_items_b b where a.inventory_item_id=b.inventory_item_id and a.organization_id=b.organization_id and a.organization_id=: P1 and ((b.segment1 between P2 and P3) or ( P2 is null ) or( P3 is null )) this command stander in oracle reports not from my headsir put : besied eash parameter and i am sorry mr PALI.ORACLE your statment its do delay for the report in the system why you used nvlits not good way تقديم بلاغ
بتاريخ: 19 أكتوبر 200916 سنة comment_173527 االسلام عليكم ايضا ايضا يمكنك النظر في مثل هذا المثالhttp://www.araboug.org/ib/index.php?s=&...st&p=166949موفقين تقديم بلاغ
بتاريخ: 19 أكتوبر 200916 سنة كاتب الموضوع comment_173535 i try to use it again but it give me null resultnot all as i want تقديم بلاغ
بتاريخ: 19 أكتوبر 200916 سنة comment_173553 اقتراح اخر ... بالاضافة للحلول السابقة الصحيحةيتم اعداد قيم اوليه ال p1 وp2 if p1 is null then p1:=0 if p2 is null then p2 := 99999999او and ( b.segment1 between nvl(p1,0) and nvl(p2,99999) ) x تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.