sam23 بتاريخ: 13 سبتمبر 2004 تقديم بلاغ مشاركة بتاريخ: 13 سبتمبر 2004 من يستطيع حل هذان التمرينان مع العلم أنهما مأخوذان من كتابintroduction to sql and pl/sql التمرين الأول-------------------create a query that will display the totalnumber of employees and of that total the number who were hired in 1980.1981.1982and 1983 give appropriate column headingstotal 1980 1981 1982 1983----- ----- ----- ----- -----14 1 10 2 1التمرين الثاني----------------------create a matrix query to display the job.the salary for that job based on department number and the total salary for that job forall departments,giving each column an appropriateJob Dept 10 Dept 20 Dept 30 Total --------- ------- ------- ------- ------ANALYST 6000 6000 CLERK 1300 1900 950 4150MANAGER 2450 2975 2850 3275PRESIDENT 5000 5000SALESMAN 5600 5600 اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
KHALID_ELDALY بتاريخ: 13 سبتمبر 2004 تقديم بلاغ مشاركة بتاريخ: 13 سبتمبر 2004 you can use case or decode to solve this probleam so easy khalid اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
ORACLE -216 بتاريخ: 17 سبتمبر 2004 تقديم بلاغ مشاركة بتاريخ: 17 سبتمبر 2004 select count(*) total, sum(decode(to_char(hire_date,'yyyy'),1995,1,0)) "1995", sum(decode(to_char(hire_date,'yyyy'),1996,1,0)) "1996", sum(decode(to_char(hire_date,'yyyy'),1997,1,0)) "1997", sum(decode(to_char(hire_date,'yyyy'),1998,1,0)) "1998"from employees; B ) اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
oss بتاريخ: 17 سبتمبر 2004 تقديم بلاغ مشاركة بتاريخ: 17 سبتمبر 2004 في ملحق خلف الكتاب فيه كل حلول التمارين للكتاب .. اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
moab157 بتاريخ: 26 يوليو 2008 تقديم بلاغ مشاركة بتاريخ: 26 يوليو 2008 (معدل) select count(*),count(decode(to_char(hire_date,'yy'),'95',to_char(hire_date,'yy'))) "1995" ,count(decode(to_char(hiredate,'yy'),'96',to_char(hiredate,'yy'))) "1996" ,count(decode(to_char(hiredate,'yy'),'97',to_char(hiredate,'yy'))) "1997" ,count(decode(to_char(hiredate,'yy'),'98',to_char(hiredate,'yy'))) "1998" from emp http://www.shbab1.com/2minutes.htm تم تعديل 26 يوليو 2008 بواسطة Amgad اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
Recommended Posts
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.