بتاريخ: 13 سبتمبر 200421 سنة comment_12524 من يستطيع حل هذان التمرينان مع العلم أنهما مأخوذان من كتاب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 تقديم بلاغ
بتاريخ: 13 سبتمبر 200421 سنة comment_12546 you can use case or decode to solve this probleam so easy khalid تقديم بلاغ
بتاريخ: 17 سبتمبر 200421 سنة comment_12756 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 ) تقديم بلاغ
بتاريخ: 17 سبتمبر 200421 سنة comment_12787 في ملحق خلف الكتاب فيه كل حلول التمارين للكتاب .. تقديم بلاغ
بتاريخ: 26 يوليو 200817 سنة comment_134121 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 يوليو 200817 سنة بواسطة Amgad تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.