ابوخطاب بتاريخ: 20 يونيو 2010 تقديم بلاغ مشاركة بتاريخ: 20 يونيو 2010 You need to create a view EMP_VU. The view should allow the users to manipulate therecords of only the employees that are working for departments 10 or 20.Which SQL statement would you use to create the view EMP_VU?وجزاكم الله خير ابوخطاب [email protected] اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
Ahmad.Hasan بتاريخ: 20 يونيو 2010 تقديم بلاغ مشاركة بتاريخ: 20 يونيو 2010 السلام عليكمتفضل: Create View Emp_Vu (Empno, Ename, Sal, Deptno) As Select A.Empno, A.Ename, A.Sal, B.Deptno From Emp A, Dept B Where A.Deptno = B.Deptno And B.Deptno In (10, 20); أو... Create View Emp_Vu (Empno, Ename, Sal, Deptno) As Select Empno, Ename, Sal, Deptno From Emp Where Deptno In (10, 20); تم وضع المثال الأول لكي تعرف كيفية عمل View من اكثر من جدول.بالتوفيق. اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
ahmedsaafan بتاريخ: 18 أغسطس 2010 تقديم بلاغ مشاركة بتاريخ: 18 أغسطس 2010 You need to create a view EMP_VU. The view should allow the users to manipulate therecords of only the employees that are working for departments 10 or 20.Which SQL statement would you use to create the view EMP_VUالسلام عليكم ورحمه الله وبركاتهالمطلوب هو عمل تقييد لعمليات الاضافه والتعديل على هذا الاستعلام بشرطعدم تعديل رقم القسم عن 10 او 20ولذلك نحتاج الى with check option in crating the viewcreate or replace view emp_vuas select * from employeeswhere department_id in (10,20)with check option;والجمله الاخيره تمنع اى محاوله لعمل تعديل او اضافه سجل جديد من خلال ال emp_vu viewولكن يسمح فقط بالاضافه او التعديل لاى سجل بشرط ان يكون رقم القسم 10 او 20والله الموفق والمستعان 1 اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
Recommended Posts
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.