Skip to content
SQLSimplified
BackendQuestion 44 of 52

Row-Level Security (RLS)

Problem

To comply with health regulations, you must ensure that doctors can only view patient records belonging to their own clinic. Write a query that outputs concept with the value: "Row-Level Security (RLS) applies fine-grained access control policies directly on a table to restrict which rows are visible based on user context."

Database Schema

This problem acts as a scratchpad. You will write your own DDL/DML or conceptual queries, so there is no predefined schema.

Try It

Loading playground environment...

Hint

Solution