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

سؤال في أمر Select Sql

Featured Replies

بتاريخ:

Create a query that displays the employees’ last names and commission amounts


If an employee does not earn commission, show “No Commission.” Label the column




.COMM



and my solution is


('select last_name,nvl2(commission_pct,commission_pct,'No commission


comm


from employees


but have error

تم تعديل بواسطة منمون علي

بتاريخ:

استخدم دة كدا


('select last_name,nvl2(commission_pct,'No commission


comm


from employees

تم تعديل بواسطة ahmedez3

بتاريخ:

try to change the 1st value to be char



Select last_name, nvl2 (commission_pct , to_char(commission_pct) , 'No commission' ) comm


from employees




Regards

بتاريخ:

;select ename, DECODE (COMMISSION, NULL, 'No Commission', 'Commission') from emp
or

select ename,nvl2(comm,'comm','no comm') from emp ;

بتاريخ:
  • كاتب الموضوع

try to change the 1st value to be char

Select last_name, nvl2 (commission_pct , to_char(commission_pct) , 'No commission' ) comm
from employees


Regards

thanks this correct
بتاريخ:


try to change the 1st value to be char

Select last_name, nvl2 (commission_pct , to_char(commission_pct) , 'No commission' ) comm
from employees


Regards

thanks this correct


You welcome
Best Regards
بتاريخ:

صلي عليه الرسول صلي الله علية وسلم

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

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.