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

بتاريخ:

السلام عليكم

اني عضوة جديده لكم في المنتدى وهاي اول مشاركاتي

اريد حل لهاي الاسئلة باستخدام SQL


[1]list Name , Department number and salary for all employees with the comment HIGHEST PAID next to the salary of those employees whose is highest in their department.

[2]list Name, department no,and salary of all employees who earn more then maximum salary of an employee in the RESEARCH department.

[3]list Name ,job of all employee and: The Employees salary if employee earns more than 1500, The message MET THE TARGET if employee earns exactly 1500, The message BELOW 1500 if employee earns less than 1500

[4]list name and salary of all employees who earn more than the average salary of an employee in their department.

[5]list the name and salary of the highest paid employee baside the PRESIDENT.

[6]list name and salary of all employees who earn less than thier immediate subordinates.

[7]list names of all departments that have no employees.

[8]write a SQL query that would accept a string as a parameter, and verify that it is in the format m*n,where m, and n are alphabates. Your query should display the parameter string together with a 'Y' if the string format is valid, 'N' otherwise.


اني حاولت احل فيهم بس ماتطلع لي الاجابه الصحيحه فارجو كل من يعرف هالمسائل ولو بعضهم يحلهم لي واكون شاكرة للجميع

مع تحياتي..

بتاريخ:

السلام عليكم ورحمه الله وبركاته
ارجو التوضيح اكثر فى السوال الاول اما بالنسبه للثانى
SELECT EMPNO,ENAME,DEPTNO,SAL
FROM EMP
WHERE SAL>(SELECT MAX(SAL) FROM DEPT,EMP WHERE DNAME ='RESEARCH' AND
EMP.DEPTNO=DEPT.DEPTNO )
, إن شاء الله سوف اكمل باقى الاجابات فى وقت لاحق

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

مرحبا..

مشكور amr fawzy على الرد
بالنسبة للسؤال الاول
list Name , Department number and salary for all employees with the comment HIGHEST PAID next to the
salary of those employees whose is highest in their departmen
اني حليته
select ename,deptno,sal
2 from emp
3 where sal in (select max(sal) from emp);

وطلع ليي
ENAME DEPTNO SAL
---------- ---------- ----------
KING 10 5000


ماادري اذا كان الجواب صح ولا لا
لان السؤال كأنه يبون name و deptno و sal للي عنده اعلى salary اللي اهو king وماادري عن صحه الجواب

بتاريخ:

السلام عليكم ورحمه الله وبركاته
الحل يكون صحيح إذا كان المطلوب هو عرض الموظف صاحب اكبر مرتب

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

اوكي

شكرا وماذا عن بقية الاسئلة

بتاريخ:

السلام عليكم ورحمه الله وبركاته
انا فهمت من السوال الثالث الاتى عرض كل الموظفين اللى مرتبهم اكبر من او يساوى 1500 و الموظفين اللى مرتبهم اقل من 1500
يسير المرتب يساوى 1500 انتظر الرد إن شاء العلى القدير

بتاريخ:

السلام عليكم ورحمه الله وبركاته
اجابه السوال الرابع إن شاء الله ستكون كالاتى

select e.empno,e.sal from emp e
where e.sal>(select avg(sal) from emp where deptno=e.deptno);


نسالكم الدعاء

بتاريخ:
السلام عليكم ورحمه الله وبركاته
انا فهمت من السوال الثالث الاتى عرض كل الموظفين اللى مرتبهم اكبر من او يساوى 1500 و الموظفين اللى مرتبهم اقل من 1500
يسير المرتب يساوى 1500 انتظر الرد إن شاء العلى القدير


مثل فهمي أخي يعني يبي الرواتب الأعلى والأقل من 1500 من غير الـ 1500 <<< يعني يريد جميع الرواتب الا 1500 وهذا سهـل جداً

select *
from employee
where salary <> 1500


أو

selec *
from employee
where salary > 1500
and salary <1500



أتمنى يطلع مثل ماتوقعت
بتاريخ:
  • كاتب الموضوع

مرحبا

list Name ,job of all employee and: The Employees salary if employee earns more than 1500, The message MET THE TARGET if employee earns exactly 1500, The message BELOW 1500 if employee earns less than 1500
في السؤال الثالث على مااعتقد انهم يبون عرض الموضفين واشغالهما مقسمين للي مرتبهم اكبر من 1500 في Employees salary واللي مرتبه 1500 فيMET THE TARGET واللي اقل من1500 BELOW

بتاريخ:

السلام عليكم ورحمه الله وبركاته
ها هى الاجابه إن شاء تكون هى إجابه المطلوب فى السؤال الثالث

SELECT E.ENAME,E.JOB,(SELECT SAL FROM EMP WHERE SAL>1500 AND EMPNO=E.EMPNO)
EMPLOYEE_SALARY,(SELECT SAL FROM EMP WHERE SAL=1500 AND EMPNO=E.EMPNO)
"MET THE TARGET" ,(SELECT SAL FROM EMP WHERE SAL<1500 AND EMPNO=E.EMPNO)BELOW
FROM EMP E


لو المطلوب غير كده انتظر المطلوب بالتفصيل ونرجو المشاركه من باقى الاعضاء وجزاكم الله كل خير ورقنى وإياكم الصراط المستقيم
والفوز بالجنه إن شاء الله
السلام عليكم ورحمه الله وبركاته

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

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

شكرا على الاجابة

وماذا عن السؤال الخامس

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

هاي محاولتي للسؤال الخامس
list the name and salary of the highest paid employee baside the PRESIDENT



select ename,'PRESIDENT' from emp where sal in (select max (sal) from emp group by PRESIDENT); 5

بتاريخ:

السلام عليكم ورحمه الله وبركاته
الاجابه حسب فهم السؤال

select ename,sal from emp
where sal in(select max(sal) from emp);


لكنى لم افهم المقصود ب
baside the PRESIDENT

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

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

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

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

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

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.