mezo4ever بتاريخ: 29 أغسطس 2007 تقديم بلاغ مشاركة بتاريخ: 29 أغسطس 2007 عندي سؤالين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 اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
sameh bakkar بتاريخ: 6 سبتمبر 2007 تقديم بلاغ مشاركة بتاريخ: 6 سبتمبر 2007 أخى الكريم هذه أجابة السؤال الثانى SELECT rpad(last_name, 8)||' '|| rpad(' ', salary/1000+1, '*') EMPLOYEES_AND_THEIR_SALARIES FROM employees ORDER BY salary DESC; اسألك الدعاء لى و المسلمينأخى الكريم هذه أجابة السؤال الثانى SELECT rpad(last_name, 8)||' '|| rpad(' ', salary/1000+1, '*') EMPLOYEES_AND_THEIR_SALARIES FROM employees ORDER BY salary DESC; بالنسبه للسؤال الأول SELECT MAX(salary) - MIN(salary) DIFFERENCE FROM employees; اسألك الدعاء لى و المسلمين اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
Recommended Posts
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.