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)

what is a database

Back (Answer)

An organised collection of data enabling efficient: - Adding -Modification -Deleting -Searching of data

#2
Front (Question)

Primary key

Back (Answer)

Field that holds unique value for each record in a database.

#3
Front (Question)

Foreign key

Back (Answer)

A field that links to tables together.

#4
Front (Question)

Secondary key

Back (Answer)

A unique identifier which is indexed to allow fast searching

#5
Front (Question)

Composite primary key

Back (Answer)

2 or more attributes uniquely identifying a record.

#6
Front (Question)

Flat file database

Back (Answer)

Contains one table. Easy to set up and maintain, but can be inefficient and have repeated data

#7
Front (Question)

Referential integrity

Back (Answer)

Ensures all foreign keys represent a valid and existing primary key in parent table

#8
Front (Question)

SQL to extract field

Back (Answer)

SELECT … FROM … WHERE… ORDER BY…. ASC/DESC WILDCARD (*) = ALL FIELDS

#9
Front (Question)

SQL to combine rows from different tables

Back (Answer)

JOIN table2 ON table1.attribute = table2.attribute

#10
Front (Question)

SQL to create a new database

Back (Answer)

CREATE TABLE table1 ( Attribute 1 [Datatype, Null/not null, Primary key] … )

#11
Front (Question)

Data types for creating tables

Back (Answer)

CHAR(n) VARCHAR(n) BOOLEAN INTEGER FLOAT DATE TIME CURRENCY

#12
Front (Question)

Adding a column

Back (Answer)

ALTER TABLE table1 ADD attribute and data types

#13
Front (Question)

Deleting a column

Back (Answer)

ALTER TABLE table1 DROP Attribute

#14
Front (Question)

Modifying a column

Back (Answer)

ALTER TABLE table1 MODIFY COLUMN Attribute NEW DATATYPE

#15
Front (Question)

Insert a new record

Back (Answer)

INSERT INTO COLUMN 1, COLUMN 2,… VALUES(Value 1, Value2…)

#16
Front (Question)

Updating a record

Back (Answer)

UPDATE table1 SET column1 = value1,…. WHERE columnX = value

#17
Front (Question)

Deleting a record

Back (Answer)

DELETE FROM table1 WHERE columnX = value

#18
Front (Question)

Normalisation

Back (Answer)

Coming up with the best possible layout for a relational database.

#19
Front (Question)

Aims of Normalisation

Back (Answer)

No redundancy Consistent data Records added/removed without issue Complex queries can be carried out

#20
Front (Question)

1st Normal Form

Back (Answer)

No attributes that contain more than 1 value. Fixed by making more records but causes redundancy

#21
Front (Question)

2nd Normal Form

Back (Answer)

Must be in 1st Normal Form Must be no partial dependencies (no attributes must depend on part of a composite key.) Fix partial dependency by creating another table with field which has the partial dependency and field it is dependent on.

#22
Front (Question)

3rd Normal Form

Back (Answer)

Must be in 2nd Normal Form Contains no non key dependencies (All attributes must depend on only the primary key) Fixed by splitting table until each attribute in a table is only dependent on primary key

#23
Front (Question)

Transaction

Back (Answer)

A single logical operation performed on data (Create, Read, Update, Delete)

#24
Front (Question)

ACID

Back (Answer)

A set of rules that ensure database validation rules are met. Atomicity, Durability, Isolation, Consistency