بتاريخ: 20 يونيو 201015 سنة comment_195058 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] تقديم بلاغ
بتاريخ: 20 يونيو 201015 سنة comment_195064 السلام عليكمتفضل: 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 من اكثر من جدول.بالتوفيق. تقديم بلاغ
بتاريخ: 18 أغسطس 201015 سنة comment_198910 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والله الموفق والمستعان تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.