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

بتاريخ:

السلام عليكم ورحمة الله وبركاته
we need a query which display the following output form tables emp,dept

dept 10
emp1
emp2
dept 20
emp3
emp4

meaning first display the department then displays the employee belonging to this
department (using hierarchical retneval) indicate the level on each row as a column
of the result.
وجزاكم الله خيرا

  • بعد 2 أسابيع...
بتاريخ:
  • كاتب الموضوع

ايه يا جماعه هو محدش رد علي السؤال ليه

بتاريخ:

السلام عليكم ورحمة الله وبركاته
الإستعلام (مطبق على scott):

with employees as
(
select deptno
, dname||' :' dname
, -1 dn
from dept
union
select empno
, ename
, deptno dn
from emp
)
select lpad(' ', level*3)||dname "Employees"
from employees
connect by prior deptno = dn
start with dn = -1


النتيجة:

Employees
---------------
ACCOUNTING :
 CLARK
 KING
 MILLER
RESEARCH :
 SMITH
 JONES
 FORD
SALES :
 ALLEN
 WARD
 MARTIN
 BLAKE
 TURNER
 JAMES


بالتوفيق

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

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

السلام عليكم ورحمة الله وبركاته
الإستعلام (مطبق على scott):
with employees as
(
select deptno
, dname||' :' dname
, -1 dn
from dept
union
select empno
, ename
, deptno dn
from emp
)
select lpad(' ', level*3)||dname "Employees"
from employees
connect by prior deptno = dn
start with dn = -1


النتيجة:

Employees
---------------
ACCOUNTING :
 CLARK
 KING
 MILLER
RESEARCH :
 SMITH
 JONES
 FORD
SALES :
 ALLEN
 WARD
 MARTIN
 BLAKE
 TURNER
 JAMES


بالتوفيق


جزاك الله كل خير وجعله في ميزان حسناتك ممكن شرح للاستعلام وشكرا جزيلا

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

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

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

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

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

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.