Back to Topic 3.3 — Database programming
3.3.5Computer Science5 flashcards

Database views

Practice Flashcards

Flip to reveal answers
Card 1 of 53.3.5
3.3.5
Question

What is a database view?

Click to reveal answer

Track your progress — Sign up free to save your progress and get smart review reminders based on spaced repetition.

All 5 Flashcards — Database views

Sign up free to track progress and get spaced-repetition review schedules.

Card 1definition

Question

What is a database view?

Answer

A **stored query with a name**, used like a table. It holds **no data of its own**.

Card 2concept

Question

Why is a view always up to date?

Answer

It stores the **query**, not the result, so every read runs it afresh — there is nothing to go stale.

Card 3concept

Question

How does a view provide security?

Answer

Grant rights on the **view only**. With no permission on the underlying table, a user cannot reach a column the view does not select.

Card 4comparison

Question

Does a view make a query faster?

Answer

**No.** The underlying query runs on every read. A **materialised view** stores the result and is fast, but is only current to the last refresh.

Card 5concept

Question

Can you update through a view?

Answer

Sometimes — a simple view over one table often yes. One with a **join, GROUP BY or aggregate** usually not: there is no single underlying row to change.

Track your progress with spaced repetition

Sign up free — Aimnova tells you exactly which cards to review and when, so you remember everything before your IB exam.

Start Free