Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(2) Consider the following relation for a relational database: (5 Marks) Appointments (PatientID, PatientName, Date, Time, Primary Doctor) Mohammad has created this table. a) Mohammad

image text in transcribed

(2) Consider the following relation for a relational database: (5 Marks) Appointments (PatientID, PatientName, Date, Time, Primary Doctor) Mohammad has created this table. a) Mohammad grants the Select permission to Ahmad on this table with grant option, then Ahmad grants Select to Sara. Can Ahmad now grant Select to Omar? Can Ahmad grant Insert to Omar? (1 Mark) b) How can Mohammad grant Select on a subset of the columns, say PatientName, Date, Time, to Khalid? (2 Marks, support your answer with SQL) c) How can Mohammad grant Select on a subset of the rows, say those patients whose Primary Doctor is Dr. Issa, to Khalid? (2 Marks, support your answer with SQL)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Circle which part of the toluene structure determines their family

Answered: 1 week ago

Question

Determine the roles of spatial layout and functionality.

Answered: 1 week ago