Back to marketplace

1.3.2 Databases

No description yet. This curated deck is ready for daily study.

Total cards: 13•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (13)

#1
Front (Question)

What is a primary key?

Back (Answer)

A field which has a unique value for every record.

#2
Front (Question)

What is a entity?

Back (Answer)

An entity is a category of data to be recorded in a database, entities have attributes.

#3
Front (Question)

What is a flat file database?

Back (Answer)

A database that consists of a single file.

#4
Front (Question)

What is an attribute?

Back (Answer)

The data attached to an entity. For example the entity Dentist might have the attribute name.

#5
Front (Question)

Write the entity description format out.

Back (Answer)

Entity (Attribute1, Attribute2)

#6
Front (Question)

What is the need for a secondary key?

Back (Answer)

A secondary key is indexed allowing for faster searching.

#7
Front (Question)

How can an entity relationship be modeled?

Back (Answer)

|Entity|(One/Many)—-(Name of the relationship)—(One/Many)|Entity|

#8
Front (Question)

What are the three degrees of relationships in a relational database?

Back (Answer)

One to one, One to many, Many to many.

#9
Front (Question)

How does a relational database work?

Back (Answer)

In a relational database a separate table is created for each entity identified, where a relationship exists between entities an extra field is added to the tables to link them.

#10
Front (Question)

What is a foreign key?

Back (Answer)

An attribute that creates a join between two tables and will be the primary key of one of the tables and the foreign in the other.

#11
Front (Question)

What needs to be done in the case of a many to many relationship?

Back (Answer)

An extra table is needed in order to link both tables consisting of foreign keys.

#12
Front (Question)

What is a composite key?

Back (Answer)

A primary key that consists of more than one attribute.

#13
Front (Question)

What is an issue likely to arise when using a flat file structure?

Back (Answer)

Redundant data and data inconsistencies.