العودة   منتدى طلاب وطالبات الجامعة السعودية الإلكترونية > كلية الحوسبه والمعلوماتية > قسم تقنية المعلومات > IT 344
أو البريد الالكتروني
 
مساحة إعلانية متاحة    مساحة إعلانية متاحة 

 

     
إضافة رد
 
LinkBack أدوات الموضوع انواع عرض الموضوع
قديم منذ /21-11-2018, 08:10 PM   #1

 
الصورة الرمزية San
طالب جديد

San غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 17300
 تاريخ الإنتساب : Oct 2015
 المشاركات : 99
 الجنس : ذكر
 مستوى التقييم : San is on a distinguished road
النقاط : 32

شكراً: 0
تم شكره 3 مرة في 2 مشاركة
افتراضي أسئلة الواجب الثاني 2018 IT-344 Assignment 2 Questions


السؤال اﻻول :
Consider the following relational database schema. Suppose that all the relations were created by (and hence are owned by) user X, who wants to
grant the following privileges to user accounts A, B, C, and D:

EMPLOYEE
Fname, Minit, Lname, Ssn, Bdate, Address, Sex, Salary, Super_ssn, Dno

DEPARTMENT
Dname, Dnumber, Mgr_ssn, Mgr_start_date

DEPT_LOCATIONS
Dnumber, Dlocation

PROJECT
Pname, Pnumber, Plocation, Dnum

WORKS_ON
Essn, Pno, Hours

DEPENDENT
Essn, Dependent_name, Sex, Bdate, Relationship

Write SQL statements to for the following privileges. Use views were appropriate :

Account A can modify DEPARTMENT and PROJECT relations -

Account B can retrieve only DNAME, MGR_SSN, DNUMBER and DLOCATION attributes of DEPARTMENT and DEPT_LOCATION -

Account C can insert or update on WORKS_ON relation and can grant any of these privileges to other users -

Account D can retrieve any attribute of DEPENDENT and WORKS_ON -
__________________________________________________ __________________________________________________ __________________________

السؤال الثاني :
:Consider the Student_Course table for the IT344 with the following fields

Std_ID
Course_ID
Std_Course_Mark


:And the Course Table with the following fields

Course_ID
Course_Name
Maximum_Mark
Minimum_Mark

When the new row in the Student_Course table is added, you need to update the Maximum_Mark and the Minimum_Mark -

Write the trigger called ‘Max_Min’ allowing to update the Maximum_Mark and the Minimum_Mark -








  رد مع اقتباس

قديم منذ /25-11-2018, 02:09 AM   #2

 
الصورة الرمزية San
طالب جديد

San غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 17300
 تاريخ الإنتساب : Oct 2015
 المشاركات : 99
 الجنس : ذكر
 مستوى التقييم : San is on a distinguished road
النقاط : 32

شكراً: 0
تم شكره 3 مرة في 2 مشاركة
افتراضي


نحتاج مشاركتكم في الحل ، فلا تبخلوا .... ولكم كل الشكر








  رد مع اقتباس
إضافة رد

مواقع النشر (المفضلة)


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة