0% found this document useful (0 votes)
31 views6 pages

The Riphah International University Islamabad: Lab Exercise

The document discusses creating a hospital management database with tables for hospitals, patients, and doctors and granting privileges to a HMS user to create, insert into, update, and drop tables.

Uploaded by

DeadPool Pool
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views6 pages

The Riphah International University Islamabad: Lab Exercise

The document discusses creating a hospital management database with tables for hospitals, patients, and doctors and granting privileges to a HMS user to create, insert into, update, and drop tables.

Uploaded by

DeadPool Pool
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

The Riphah international University Islamabad

Name: Abdullah (2098)


Assignment: Database

Lab Exercise
Question No 1:
Create a user Hospital management system (Username HMS).

Question No 2:
Give System level privileges to HMs.

Page # 1
Question No 3:
Create table hospital, patient, doctors.

Question No 4:
Give the object level privileges to created tables in hms.
Question No 5:
Revoke the select and insert privileges from hospital and patient table.

 insert at least 5 records in each table.


 Update value of records only apply in one table
 At the end drop table any table

Hospital Table data:


Patient Table data:
Update Hospital Table data:

Revoke privileges from Patient Table data:


Drop Patient Table data:

You might also like