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

بتاريخ:

اريد من أحدكم مساعدتي في هذا السؤال لو سمحتم
فقد حاولت جاهدة منذ يومين ولم اوصل الى نتيجة مرضية فسوف اذكر السؤال بالعربي والـE واكتب محاولتي وكلِ رجاء بأن تساعدوني
الاسئلة هي:

1-Write a query to display the name department number and salary of any employee whose department number and salary match the department number and salary of any employee earns commission.


2-Display the name department name and salary of any employee whose salary and commission match the salary and commission of any employee located in DALLAS.

****************************************************************



بتاريخ:

اجابة السؤال الاول

select last_name,salary,department_id
from employees
where (department_id,salary) in (select department_id,salary
from employees
where commission_pct is not null)
/
والملف المورفق يحوى الجل ايضا

first_question.sql

بتاريخ:

على فكره انا جاوبت السؤال على اساس الدخول باسم المستخدم اتش ار مش سكوت

بتاريخ:

الحل الصحيح على اساس المستخدم سكوت
select ename,deptno,sal
from emp
where (deptno,sal) in (select deptno,sal
from emp
where comm is not null)
/

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

انا استخدم سكوت وشاكرة لك جدا
scott
tiger

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

الاصدار 8i

بتاريخ:

حل السؤال الثانى
select ename,dname,sal
from dept,emp
where (sal,comm) in (select sal,comm
from dept,emp
where loc='DALLAS'
and comm is not null)
/

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

ااااااااااااااااااااااااالف شكر
بعد ما حلتلي السؤال الاول حليت السؤال الثاني هكذا
SQL> select d.dname,e.sal
2 from dept d,emp e
3 where (sal,comm)in
4 (select sal,comm
5 from emp
6 where loc='DALLAS');

DNAME SAL
-------------- ---------
RESEARCH 1600
RESEARCH 1250
RESEARCH 1250
RESEARCH 1500
وما اقتنعت بس طمنتني لما جوبت على السؤال الثاني
ومهما شكرتك ما وفيت

بتاريخ:

ااعتقد بالنسبه للسؤال الثانى لابد من استخدام not null وذلك فى الاستعلام الداخلى واتمنى ان اكون ساعدت بما فيه الكفايه

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

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

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

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

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

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.