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

للمحترفيين فى sqlأريد عرض هذا

Featured Replies

بتاريخ:

Total 1983 1987 1981
14 4 8 4

المطلوب عرض عدد الموظفيين فى كل عام وعرض عدد كل الموظفيين
من جدول emp
hiredate

بتاريخ:

Plz Redefine ur Issue..

بتاريخ:

استخدم امر ال decode

 1  select count(*) total , sum(decode(to_char(hiredate,'yyyy') , 1981 , 1, 0 )) "1981" ,
 2  sum(decode(to_char(hiredate,'yyyy') , 1982, 1, 0 )) "1982" ,
 3  sum(decode(to_char(hiredate,'yyyy') , 1983, 1, 0 )) "1983" ,
 4  sum(decode(to_char(hiredate,'yyyy') , 1987, 1, 0 )) "1987"  ,
 5  sum(decode(to_char(hiredate,'yyyy') , 2004, 1, 0 )) "2004"
 6* from emp
SQL> /

    TOTAL       1981       1982       1983       1987       2004
---------- ---------- ---------- ---------- ---------- ----------
       14         10          1          0          2          1

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

ممكن شرح كامل أو كتاب عن (decode)
وربنا يبارك لكل المجاهديين فى سبيل العلم ونشره

بتاريخ:

السلام عليكم ورحمة الله وبركاته

Select TO_CHAR(Hiredate,'YYYY') Year, Count(*) Total
FROM Emp
Group By TO_CHAR(Hiredate,'YYYY')
Order by 1;

أرجو أن يكون هذا ما تبحث عنه

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

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

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

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

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

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

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.