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

Set Operators Questions

Featured Replies

بتاريخ:

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

من فضلكم
كنت عاوز مساعدة في حل بعض الامثلة المتعلقة ب Set operators

1.	The HR department needs a list of department IDs for departments that do not contain the job ID ST_CLERK. Use set operators to create this report.




2.	The HR department needs a list of countries that have no departments located in them. Display the country ID and the name of the countries. Use set operators to create this report.




3.	Produce a list of jobs for departments 10, 50, and 20, in that order. Display job ID and department ID using set operators.




4.	Create a report that lists the employee IDs and job IDs of those employees who currently have a job title that is the same as their job title when they were initially hired by the company (that is, they changed jobs but have now gone back to doing their original job).



5.	The HR department needs a report with the following specifications:
Last name and department ID of all the employees from the EMPLOYEES table, regardless of whether or not they belong to a department
Department ID and department name of all the departments from the DEPARTMENTS table, regardless of whether or not they have employees working in them
Write a compound query to accomplish this.

تم تعديل بواسطة hanyfreedom
تم تعديل عنوان الموضوع ليدل على مضمونه .

بتاريخ:

السلام عليكم...
هذا حل بعض الأسئلة و أما الأسئلة الباقية هي بسيطة و لكن لم استطع فهم الفائدة من السؤال.


الأول

select deptno from dept minus
select deptno from emp where job<>'CLERK'
/



الثاني

select CountryName,CountryId from Countries where CountryId in (select CountryId from Countries minus
select CountryId from Departments)
/





الخامس

select ename,e.deptno,dname 
from emp e full outer join dept d on(e.deptno=d.deptno)

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

جزاك الله كل خير

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

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

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

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

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

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.