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

بتاريخ:

أكتب برنامج لاستخراج العمولة تقل موظف حيث الموظف يقل راتبه عن 4000 عمولة
5% من الراتب والموظف الذي يحصل على4000 وأكثر يحصل على 10% باستخدام الامر for وبالاعتماد على الجدول emp
empno,ename sal,العمولة, deptno
العمولة مجهولة بليززززززززز ياجماعة

** تم تعديل عنوان المشاركه
يجب أن يكون موضوع المشاركه مطابق للمحتوي والا سيتم حذف كل المشاركه
إداره المنتدي

بتاريخ:

ممكن توضح اكتر يا اخى

شكرا

بتاريخ:

جرب هذا

declare 
 l_comm number;
begin
 for i in (select * from emp)
 loop
     if i.sal >= 4000 then    
        l_comm:= i.sal * 0.1;
        dbms_output.put_line('empno'   || '  ' ||'ename'   || '  ' ||'sal' ||'  '|| 'comm'  || '  ' ||'deptno' );
        dbms_output.put_line(i.empno || '  ' ||i.ename || '  ' ||i.sal || '  '||l_comm || '   ' ||i.deptno );
     else
        l_comm:= i.sal * 0.05;
        dbms_output.put_line('empno'   || '  ' ||'ename'   || '  ' ||'sal' ||'  '|| 'comm'  || '  ' ||'deptno' );
        dbms_output.put_line(i.empno || '  ' ||i.ename || '  ' ||i.sal || '  '||l_comm || '   ' ||i.deptno );
     end if;
 end loop;
end;

بتاريخ:

يمكن أن تعمل جدول أخر و تدرج فيه البيانات من خلال هذا الأمر
declare
cursor empcur is select empno,ename,sal,deptno from emp;
dareba number;
empno number;
ename varchar2(50);
sal number;
deptno number;
begin
open empcur;
loop
fetch empcur into empno,ename,sal,deptno;
exit when empcur%notfound;
if sal>= 4000 then
dareba:=sal*0.1;
insert into f_emp (empno,ename,sal,deptno,dareba) values(empno,ename,sal,deptno,dareba);
else
dareba:=sal*0.05;
insert into f_emp (empno,ename,sal,deptno,dareba) values(empno,ename,sal,deptno,dareba);
end if;
end loop;
close empcur;
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.