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.
Diagnosis or BillingAmount.CREATE VIEW statement named vw_FrontDesk that selects only the appropriate, non-sensitive columns.SELECT statement to test querying your new view.CREATE VIEW statement named vw_DrSmithPatients that includes all medical columns (Name, DOB, Diagnosis), but uses a WHERE clause to filter the records where AssignedDoctor = 'Dr. Smith'.CREATE VIEW statement named vw_DoctorRevenue.GROUP BY AssignedDoctor and calculate the SUM(BillingAmount) as TotalRevenue.AssignedDoctor column to help direct patients. Write an ALTER VIEW vw_FrontDesk statement to update the query logic and include that column.DROP) the vw_DrSmithPatients view from the database.