الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

اريد منكم مساعدتي في فهم السؤال

مغلق
بدأه miss_internet في 17 مايو 2005 · 1 رد · 461 مشاهدة · في قواعد بيانات Microsoft SQL Server
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

اخواني اخواتي الكرام اعضاء الموقع

لدي هذا السؤال وصعب علي فهمه واتمنى من حضراتكم مساعدتي على فهمه

EMPLOYEE

FNAME\\ MINIT\\ LNAME \\ SSN \\ BDATE \\ ADDRESS \\ SEX \\ SALARY \\ SUPERSSN \\\\ DNO

DEPARTMENT

DNAME \\ DNUMBER \\ MGRSSN \\ MGRSTARTDATE

DEPT_LOCATION

DNUMBER \\ DLOCATION

PROJECT

PNAME \\ PNUMBER \\ PLOCATION \\ DNUM

WORKS_ON

ESSN \\ PNO \\ HOURS

DEPENDENT

ESSN \\ DEPENDENT_NAME \\ SEX \\ BDATE \\ RELATIONSHIP

Suppose that all the relations were created by user X who wants to grant the following privileges to user account A, B, C, D, and E.

a) Account A can retrieve or modify any relation except dependent and grant any of these privileges to other users.

B) Account B can retrieve all the attributes of employee and department except for salary, mgrssn, and mgrstartdate.

c) Account C can retrieve or modify works_on but can only retrieve the fname , minit , lname , and ssn attributes of employee and the pname and pnumber attributes of project.

d) Account D can retrieve any attributes of employee or dependent and can modify dependent.

e) Account D can retrieve any attributes of employee but only for employee tuples that have dno=3.

f) Write SQL statements to grant these privileges.

فانا لم افهم مالمقصود من هذا السؤال

فاتمنى منكم افادتي

ولكم مني جزيل الشكر

تم تعديل هذه المشاركة بواسطة miss_internet في 17 مايو 2005 في 18:52

#2

المطلوب استخدام هذا الامر

Syntax
Statement permissions:

GRANT { ALL | statement [ ,...n ] } 
TO security_account [ ,...n ] 

Object permissions:

GRANT 
    { ALL [ PRIVILEGES ] | permission [ ,...n ] } 
    { 
        [ ( column [ ,...n ] ) ] ON { table | view } 
        | ON { table | view } [ ( column [ ,...n ] ) ] 
        | ON { stored_procedure | extended_procedure } 
        | ON { user_defined_function }
    } 
TO security_account [ ,...n ] 
[ WITH GRANT OPTION ] 
[ AS { group | role } ]

لاسناد الصلاحيات للحسابات او المستخدمين A-B-C-D-E

في الجداول المعطاه في السئوال

هذا الموضوع مغلق.

مواضيع مشابهة