الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

اريد اجابة هذا السؤال خاص بview

Featured Replies

بتاريخ:


You need to create a view EMP_VU. The view should allow the users to manipulate the
records 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]

بتاريخ:

السلام عليكم
تفضل:

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 من اكثر من جدول.

بالتوفيق.

  • بعد 1 شهر...
بتاريخ:

You need to create a view EMP_VU. The view should allow the users to manipulate the
records 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 view
create or replace view emp_vu
as select * from employees
where department_id in (10,20)
with check option;

والجمله الاخيره تمنع اى محاوله لعمل تعديل او اضافه سجل جديد من خلال ال emp_vu view
ولكن يسمح فقط بالاضافه او التعديل لاى سجل بشرط ان يكون رقم القسم 10 او 20


والله الموفق والمستعان

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.