omar-alreyati بتاريخ: 27 نوفمبر 2005 تقديم بلاغ مشاركة بتاريخ: 27 نوفمبر 2005 الاخوة الاعزاء : ارجو منكم شرح الInline Views، وما هي الفائدة من استخدامها، مع بعض الأمثلة لو سمحتم.وشكراً اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
Osama Soliman بتاريخ: 6 يناير 2006 تقديم بلاغ مشاركة بتاريخ: 6 يناير 2006 Inline Views•An inline view is a subquery with an alias (or correlation name) that you can use within a SQL statement.•An inline view is created by placing a subquery in the FROM clause and giving that subquery an alias. •An inline view is not a schema object.•The subquery defines a data source that can be referenced in the main query SELECT a.last_name, a.salary, a.department_id, b. maxsal FROM employees a, (SELECT department_id, max(salary) maxsal FROM employees GROUP BY department_id) b WHERE a.department_id = b.department_id AND a.salary < b.maxsal; اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
Recommended Posts
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.