Relational Databases (Leaving Cert Computer Science): Flashcards

📚Flashcards
Relational Databases
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

12 cards from this deck

Show

Relational database

Stores & provides access to related data points

Primary key

Unique identifier for each record in a database table

Primary key: uniqueness property

Must be unique for each row in the table

Primary key null value rule

Cannot contain null values

Primary key immutability

Should not change over time

Composite primary key

Primary key consisting of multiple columns combined

Suitable primary key in Student Table

ID column (unique for each student)

Why full name unsuitable as primary key

Multiple people may have the same name

Foreign key

Column(s) linking two tables by referencing primary key

What foreign key refers to

Primary key in another table

Foreign key example in Student Table

Exam ID refs Grade Table primary key

Can primary key also be foreign key

Yes, primary key can also be a foreign key

Explore Leaving Cert Computer Science Revision Notes by Topics

Explore Leaving Cert Computer Science Model Answers by Topics

Explore Leaving Cert Computer Science Quizzes by Topics

Explore Leaving Cert Computer Science Exam Questions by Topics

Join 100,000+ Leaving Cert students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.