بتاريخ: 20 فبراير 201016 سنة comment_185464 الرجاء المساعدة لأني أعمل على هذا المشروع write another pl/sql block to store the salary of an employee in subsititution variable in the executable part of the program do the following1-calculate the annul salary *122-calculate the bonus as indicated below:3-if total sum >50,000 give the employee 15%4-if total sum equal or greater than 30,000 and equal 50,000 give the employee 20%5-display the amount of the bonus in the window in the following format:the bonus is $.... by using DBMS_OUTPUT.PUT_LINE تقديم بلاغ
بتاريخ: 21 فبراير 201016 سنة comment_185537 أخي الفاضل ممكن توضيح السؤال اكثر واعطاء بيانات اكثر واعطاء الجدول الذي يطبق عليه هذا السؤالويا ريت يكون السؤال بالعربي تقديم بلاغ
بتاريخ: 21 فبراير 201015 سنة comment_185543 انا جربتها ع جدول ال employees ال ف سكيما hr ودا ال فهمته من كلام حضرتك لو ف اى حاجة ياريت التوضيح set serveroutput on declare sal employees.SALARY%type; annual_sal employees.salary%type; comm employees.commission_pct%type; begin select salary,nvl(commission_pct,0) into sal,comm from employees where employee_id=&emp; annual_sal:=(sal*12)+(comm*sal); if annual_sal>50000 then annual_sal:=sal*0.15; dbms_output.put_line('the bonus is $ ' ||to_char(annual_sal)); elsif annual_sal>=30000 or annual_sal=50000 then annual_sal:=sal*0.20; dbms_output.put_line('the bonus is $' ||to_char(annual_sal)); end if; end; تم تعديل 21 فبراير 201015 سنة بواسطة @nana@ تقديم بلاغ
بتاريخ: 22 فبراير 201015 سنة كاتب الموضوع comment_185618 برمج كتلة لاسترداد الاسم وقسم البيع لكل موظف من الجدول (emp ) و فقط بالنسبة لأولئك الموظفين الذين رقمهم الوظيفي EMPID هو أقل من 7500.* من القيم المستردة المطلوب حساب الرواتب السنوية لكل موظف وطباعتها باستخدام DBMS_OUTPUT.PUT_LINE. (استخدام حلقة)* استخدام حلقة ، لاسترداد اسم الموظف و الراتب الجدول (emp) وعرضها في إطار ، وذلك باستخدام DBMS_OUTPUT.PUT_LINE. اعرض هذه التفاصيل للموظفين ال 15 الأولى تم تعديل 22 فبراير 201015 سنة بواسطة riad.baker تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.