VIEWS

📝 VIEWS

Total Questions: 4
Click an answer to select it, then click "Check Answers" to see your results.
Question 1

What is the primary function of a **view** in SQL?

A.

A) To act as a virtual table from a saved SELECT query

B.

B) To physically store data from multiple tables

C.

C) To permanently delete rows from a base table

D.

D) To create indexes on frequently queried columns

Question 2

How does a **view** ensure data security compared to direct table access?

A.

A) By encrypting all columns in the view

B.

B) By restricting access to only defined columns and rows

C.

C) By automatically backing up the base table data

D.

D) By requiring a password for every query

Question 3

A **complex view** is best defined as a view that

A.

A. References only one base table

B.

B. Limits access to individual rows only

C.

C. Stores data physically like a table

D.

D. Joins multiple tables and uses **GROUP BY** with aggregates

Question 4

What distinguishes a **materialized view** from a regular view?

A.

A. It executes the query only once during creation

B.

B. It always uses **NATURAL JOIN** exclusively

C.

C. It requires frequent data updates

D.

D. It simplifies single-table queries

Quiz Complete!

Score: 0 / 4