الانتقال إلى المحتوى

اريد حل لهذه الجمله التى تعطى خطأ


إسراء

Recommended Posts

select e.sal,count(*) c from emp e


group by e.sal
having count(*)>1 ;

SAL C
------ ----------
1250 2
3000 2


SQL> select ename,sal from emp where sal in
(select e.sal,count(*) c from emp e
group by e.sal
having count(*)>1 )
group by sal order by sal desc ;
(select e.sal,count(*) c from emp e
*
ERROR at line 2:
ORA-00913: too many values

تم تعديل بواسطة إسراء
رابط هذا التعليق
شارك

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

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

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

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   تمت استعادة المحتوى السابق الخاص بك.   مسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

جاري التحميل
×
×
  • أضف...

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

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