السلام عليكم
عندي مشكلة في برنامج عن الfunction
ياريت تساعدوني انا عندي السؤال بس في شغلات بالسؤال مش فاهماها
وحاولت احله
راح اكتب السؤال اول شي
create a function called annual to return annual salary by passing two parameters(one for monthly salary and second for commision )
either or both values passed can be null, but the function should still return an annual salary which is not null
the annual salary = (salary*12) +(commission *salary*12)
انا حليت السؤال زي مافهمت بس مافهمت ايش المقصود هنا ايش نعمل بالnull
begin
return(emp_sal*12)+(emp_comm*emp_sal*12);
end annual_comp;
create or replace function annual_comp (emp_sal employees.salary%type, emp_comm number)return number is
ياريت تساعدوني
شكرا الكم