بتاريخ: 31 أغسطس 200718 سنة comment_108873 عندي سؤالينWrite a query that displays the difference between the highest and lowest salaries. Label thecolumn DIFFERENCE.من جدول الموظفين--------------------------------------------Create a query that displays the employees’ last names and indicates the amounts of theirannual salaries with asterisks. Each asterisk signifies a thousand dollars. Sort the data indescending order of salary. Label the column EMPLOYEES_AND_THEIR_SALARIES.دى التمارين اللى موجود فى الماتريل بتاعت 9i تقديم بلاغ
بتاريخ: 1 سبتمبر 200718 سنة comment_108877 SQL> select ( select max(sal) from emp) - ( select min(sal) from emp) DIFFERENCE 2 from dual; DIFFERENCE ---------- 4200 SQL> select rpad(ename,15,' ') || lpad(' ' ,(sal/100),'*') EMPLOYEES_AND_THEIR_SALARIES 2 from emp order by sal desc; EMPLOYEES_AND_THEIR_SALARIES --------------------------------------------------------------------------------------- KING ************************************************* SCOTT ***************************** FORD ***************************** JONES **************************** BLAKE *************************** CLARK *********************** ALLEN *************** TURNER ************** MILLER ************ WARD *********** MARTIN *********** ADAMS ********** JAMES ******** SMITH ******* 14 rows selected. تقديم بلاغ
بتاريخ: 9 سبتمبر 200718 سنة comment_109487 ربنا يكرمك يا عم moody_4uويوفق الجميع وانت ادعي كمان دخلت اختبار 007 والحمد لله وباستعد لاختبار 147 تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.