← Back to Dashboard

Day 6: Practice Exercises

Hands-On SQL Assignments

Scenario: You are the DBA for a hospital. You have a main table called PatientRecords with columns: PatientID, Name, DOB, Diagnosis, AssignedDoctor, and BillingAmount. You need to create specific Views so different staff members only see what they are legally allowed to see.

Task 1: Column-Level Security (Front Desk View)

Task 2: Row-Level Security (Doctor's View)

Task 3: Aggregation Security (Accounting View)

Task 4: Maintenance (Altering and Dropping)