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

مجموعة أسئلة


sam23

Recommended Posts

شباب ممكن تساعدوني شوي
1- مالفرق بين التعليمتين التاليتين وماذا تفعل كل منها
SELECT last_name, salary, MAX(salary
)
OVER (ORDER BY hire_date) "SALMAX
"(شو هي over)
FROM employees
WHERE department_id = 30;

2- select e.last_name,e.salary,e.department_id,b.salmax from
employees e,(select department_id,max(salary) salmax from employees
group by department_id)b
where e.department_id=b.department_id


سؤال آخر (تحملونا شوي)
لماذا عند كتابة التعليمة التالية يزداد عدد المحارف


select last_name,lpad(' ',salary/1000,'*')SALARY from employees

LAST_NAME
-------------------------
SALARY
----------------------------------------------------------------------------------------------------
Higgins
************

Gietz
********

رابط هذا التعليق
شارك

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

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

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

×   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.

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

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

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