Back to marketplace

Databases

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

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

Card preview (24)

#1
Front (Question)

Entity-Relationship Modelling

Back (Answer)

A method of abstractly describing the data tables and the relationships between them visually. They can be used to reduce redundancy and construct a relational database.

#2
Front (Question)

What is an entity?

Back (Answer)

It is a thing about which data is to be stored, for example: a customer.

#3
Front (Question)

What is an attribute?

Back (Answer)

Attributes are characteristics or other information about entities, for example: the customer’s name or address.

#4
Front (Question)

What is a relational database?

Back (Answer)

It is a type of database that stores and provides access to data points that are related to one another.

#5
Front (Question)

What is a primary key?

Back (Answer)

A primary key is an attribute that provides an unique identifies for every entity in a database table.

#6
Front (Question)

What is a composite key?

Back (Answer)

If it is not possible to form a primary key from just one attribute. It is possible to combine attributes to form what is called a composite primary key

#7
Front (Question)

What is a foreign key?

Back (Answer)

A foreign key is an attribute in a table which is the primary key in another, related, table.

#8
Front (Question)

What is a one-to-one relationship?

Back (Answer)

Where one entity could be linked to only one of another entity

#9
Front (Question)

What is a one-to-many relationship?

Back (Answer)

Where one field from a table is linked to several records from another table.

#10
Front (Question)

What is a many-to-many relationship?

Back (Answer)

For example, a tutor might have multiple students and students might have multiple tutors. This type of relationship can become complicated when turned into a database because they cannot occur in real life; data cannot be transferred as it logically doesn’t make sense. This can be fixed using an association table. For example, a tutor can publish many papers and a paper can have many publishers so the association is Publication Issue Number; this is because it’s the simplest link.

#11
Front (Question)

What is normalisation?

Back (Answer)

Normalisation is the process of removing redundancy within a database. Doing so makes accessing and storing data easier and more efficient

#12
Front (Question)

Steps for Un-normalised Form

Back (Answer)

• Select an initial key. This acts as a starter key. It needs to be unique so you can derive other values from it. If there is no suitable key, add one. • Transfer all identifiable attributes, ensuring each has their own relevant and unique name. • Look for repeating groups. These are a group of similar attributes that have multiple values for a single value of the initial key. Select a suitable initial key for the repeating group, surround them with brackets, and write them apart from the single-valued attributes

#13
Front (Question)

Steps for First Normal Form

Back (Answer)

• Create new relations by separating all repeating groups select a new primary key for the new relation and propagate the initial key to form a new composite key. • All other single-values attributes remain with the initial key

#14
Front (Question)

Steps for Second Normal Form

Back (Answer)

The second stage of normalisation requires that all key attributes in a table are dependent on each other and that the table is in first normal form. Only then can you move on to creating a database that is in second normal form which will provide even more strength to the data structure. • Separate any attributes from keys formed in the previous step that are only dependent on one part of the composite key

#15
Front (Question)

Steps for Third Normal Form

Back (Answer)

The third step is the transition into third normal form. • Separate any attributes that are dependent on other non-key attributes; foreign keys are retained in the original relation • Check composite keys for redundant parts. If a part of a key can be derived from other attributes, demote key attribute to non-key

#16
Front (Question)

Advantages of normalisation

Back (Answer)

no redundancy, consistent data throughout linked tables, records can be added and removed without issues, complex queries can be carried out

#17
Front (Question)

What is SQL?

Back (Answer)

Structured Query Language is a declarative language used for querying and updating tables in a relational database.

#18
Front (Question)

What are the two types of SQL?

Back (Answer)

Data Definition Language, Data Manipulation Language

#19
Front (Question)

What is DDL?

Back (Answer)

The data definition language is a language used to build the structure of a database, and consists of a variety of commands which allow the user to define the structure of the database by creating, altering or deleting tables. It also allowed the administrator to apply constraints to a database table.

#20
Front (Question)

What is DML?

Back (Answer)

The data manipulation language is the language used to populate and update the database after it has been created. DML allows the user to insert, modify, delete, and query a database table for the data values of the entire table, for a specific record or for records that meet criteria.

#21
Front (Question)

VARCHAR(n)

Back (Answer)

Variable length string of maximum n characters

#22
Front (Question)

CHAR(n)

Back (Answer)

Fixed length string of n characters

#23
Front (Question)

DATE

Back (Answer)

A date (there is also TIME, TIMESTAMP, and DATETIME)

#24
Front (Question)

INT

Back (Answer)

Whole numbers (positive and negative)