You are on page 1of 2

Name: Omkar Kailash Raut Roll No- TITA-18

Assignment No-06
Aim: Database security And Privileges: Use GRANT and REVOKE command.
Theory:
TCL COMMAND
COMMIT: command is used to save the Records.

ROLL BACK: command is used to undo the Records.

SAVE POINT: command is used to undo the Records in a particular transaction.

Queries:
Tables Used: Consider the following tables namely “DESIGNATIONS” and
“EMPLOYEE”
Their schemas are as follows, Employee (Employee_ID, Name, Date_of_Birth, Age,
Gender, Designation) and Designations (Designation_ID, Designation_Name,
Basic_Salary);
Q1: Develop a query to grant all privileges of employees table into departments
table.
Ans: SQL> Grant all on Employee to Designations;
Grant succeeded.

Q2: Develop a query to grant some privileges of Employee table into Designation
table.
Ans: SQL> Grant select, update, insert on Designations to Designations with
grant option;
Grant succeeded.

Q3: Develop a query to revoke all privileges of employees table from departments
table
Ans: SQL> Revoke all on Employee from Designations;
Revoke succeeded.
Q4: Develop a query to revoke some privileges of employees table from
departments table

1 DBMS
Name: Omkar Kailash Raut Roll No- TITA-18

Ans: SQL> Revoke select, update, insert on Designations from Designations;

Revoke succeeded.

Conclusion: Thus Database security And Privileges: Use GRANT and


REVOKE command are implemented successfully.

2 DBMS

You might also like