بتاريخ: 14 أبريل 201312 سنة comment_235034 اكتب استعلام عندما اضغط على زر استعلام يعرض الموظفين الذين تقع رواتبهم بين أعلى راتب أقل راتب تقديم بلاغ
بتاريخ: 14 أبريل 201312 سنة comment_235035 السلام عليكم you can use set_block_property to define the where clause of employee block in WHEN-BUTTON-PRESSED trigger and then execute_query on employee block SET_BLOCK_PROPERTY('block_name', default_where, 'your where clause'); build your where clause depending on min & max salary to get all employees within your salary range Best Regards تقديم بلاغ
بتاريخ: 15 أبريل 201312 سنة كاتب الموضوع comment_235072 select max(sal),min(sal) into :t1,:t2 from emp; set_block_property('emp',defult_where,'sal between'||:t1||'and'||:t2 ); go_block('emp'); execute_query; هذا الكود بس فيه خطأ تم تعديل 15 أبريل 201312 سنة بواسطة Ahmad.Hasan تقديم بلاغ
بتاريخ: 15 أبريل 201312 سنة comment_235079 your code is right but need some updates 1st default_where not defult_where 2nd add spaces between your code and the two salaries set_block_property('EMP', default_where,'sal between ' || :min_sal || ' and '||:max_sal -------------------------------------------------------------------------------------------------------------------------------- If you have some errors you can display it by CTRL + SHIFT + E and trace the existing query as a normal select statement Regards تم تعديل 15 أبريل 201312 سنة بواسطة AElsaber تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.