Back to all Computer Science topics
Topic 3.1Computer Science SL5 flashcards

Database fundamentals

Practice Flashcards

Flip cards to reveal answers
Card 1 of 53.1.1
3.1.1
Question

What is a relational database?

Click to reveal answer

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

All Flashcards in Topic 3.1

Below are all 5 flashcards for this topic. Sign up free to track your progress and get personalized review schedules.

3.1.15 cards

Card 1definition
Question

What is a relational database?

Answer

A database that stores data in tables and links those tables together with keys, so each fact is stored once in the table it belongs to and other tables point at it rather than copying it.

Card 2comparison
Question

What is the difference between a primary key, a composite key and a foreign key?

Answer

A primary key uniquely identifies each row in its table. A composite key does that using two or more columns together, when no single column is unique. A foreign key holds a primary key value from another table, which is how the link is made.

Card 3concept
Question

Give three benefits of a relational database.

Answer

Reduced duplication, because each fact is stored once; data integrity, because the database enforces rules such as refusing an invalid foreign key; and consistency, because changing a fact in one place is seen by everyone.

Card 4concept
Question

Give three limitations of a relational database.

Answer

A rigid schema that must be decided up front and is disruptive to change; poor handling of unstructured data such as documents and images; and difficulty scaling very large volumes across many machines.

Card 5concept
Question

Why is storing everything in one large table a problem?

Answer

The same fact gets written out on every row that mentions it. Changing it means finding every copy, and missing one leaves the data contradicting itself.

Want smart review reminders?

Sign up free to track your progress. Our spaced repetition algorithm will tell you exactly which cards to review and when.

Start Free