Database view
A virtual table defined by a saved query, used to expose only selected rows or columns to a user; it limits access only while that user cannot reach the underlying tables directly.
A database view is a virtual table defined by a query saved in the database. It normally stores no data: reading it runs the query against the base tables. Because the query can select only some columns (leaving out a salary field, for example) or only some rows (records for the reader’s own department), a view is a common way of enforcing need to know inside a relational database, and it is a standard illustration of content-dependent access control.
A view restricts only when the permission model makes it restrict. If an account that is granted access to the view also holds SELECT on the base tables, it can query around the view entirely. The control is therefore the view together with grants that deny direct table access, an application of least privilege. Views can also help against aggregation and inference by withholding combinations of fields that would reveal more than any single field, though they do not stop inference from what a view legitimately shows.
Exam relevance: a scenario in which users must see part of a table but not all of it is likely to point to a view. Candidates are expected to recognise that a view protects nothing if the same user can query the tables beneath it.