Answered step by step
Verified Expert Solution
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
(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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started