Back to marketplace

10 Fundamentals of 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)

Define attribute

Back (Answer)

A property of an entity equivalent to a field in a table

#2
Front (Question)

Define entity

Back (Answer)

Any item in the system about which data is stored

#3
Front (Question)

Define primary key

Back (Answer)

An attribute that uniquely identifies each record in a table

#4
Front (Question)

Define composite key

Back (Answer)

A primary key that involves more than one attribute

#5
Front (Question)

Define foreign key

Back (Answer)

A primary key in another table to create a relationship

#6
Front (Question)

What are the properties of a first normal form?

Back (Answer)

• No repeating attributes or groups of attributes • all attributes must be atomic (cannot consist of two data item e.g. first name and surname • this would make it difficult to order by surname

#7
Front (Question)

What are the properties of a second normal form?

Back (Answer)

• In first normal form • With no partial dependencies • (this only occurs if primary key is a composite key) • the value of the non-key attribute can be determined by a subset of the primary key but not the entire key

#8
Front (Question)

What are the properties of a third normal form?

Back (Answer)

• Second normal form • No non-key dependencies

#9
Front (Question)

SQL syntax for retrieving data

Back (Answer)

SELECT attribute FROM table

#10
Front (Question)

SQL syntax for relational database

Back (Answer)

SELECT attributes FROM tables JOIN table2 ON table1.primarykey = table2.foreignkey

#11
Front (Question)

SQL syntax to order results

Back (Answer)

SELECT attribute FROM table WHERE attribute2 = 10 ORDER BY attribute ASC

#12
Front (Question)

SQL syntax to create a new table

Back (Answer)

CREATE TABLE Customers ( CustomerID CHAR(4) NOT NULL PRIMARY KEY, FirstName VARCHAR(20) NOT NULL, Surname VARCHAR (50) NOT NULL, PricePaid CURRENCY Height FLOAT (5, 2) #float with 5 digits and max of two after decimal )

#13
Front (Question)

SQL syntax to add attribute

Back (Answer)

ALTER TABLE Customers ADD Age INT

#14
Front (Question)

SQL syntax to delete attribute

Back (Answer)

ALTER TABLE Customers DROP Height

#15
Front (Question)

SQL syntax to alter data type of attribute

Back (Answer)

ALTER TABLE Customers MODIFY COLUMN Surname VARCHAR(40) NOT NULL

#16
Front (Question)

SQL syntax to insert a new record

Back (Answer)

INSERT INTO Customers(CustomerID, Firstname, Surname) VALUES (“8472”, “Alice”, “Wonderland”)

#17
Front (Question)

SQL syntax to delete a record

Back (Answer)

DELETE FROM Customers WHERE CustomerID = “2342”

#18
Front (Question)

SQL syntax to update a record

Back (Answer)

UPDATE Customers SET Surname = “Borderland” WHERE CustomerID = “8462”

#19
Front (Question)

What are the benefits of normalisation?

Back (Answer)

• Easier to maintain and update a normalised database • No unnecessary duplication of data • Data integrity is maintained e.g. if a person changes their address, the update only needs to be made to one table • Smaller tables and fewer fields means faster searches and saves storage

#20
Front (Question)

Define client-server database.

Back (Answer)

A system that provides simultaneous access to the database for multiple clients

#21
Front (Question)

Define normalisation.

Back (Answer)

The formal process of optimally designing data tables by reducing data redundancy and repetition by converting them into normal forms.

#22
Front (Question)

What are the strengths of client-server databases?

Back (Answer)

• Consistency of database is maintained as only one copy is held • Backup and recovery - as the database is centralised, a server admin can create backups so that if there’s a failure or loss of data the database can be recovered with little or no consequences • Centralised security - limiting and controlling access levels can preserve the integrity of the data in the database

#23
Front (Question)

What are the techniques used to handle simultaneous database transactions?

Back (Answer)

• Record locking • Timestamp ordering • Commitment ordering

#24
Front (Question)

Describe record locking.

Back (Answer)

Prevents simultaneous access to objects in a database to prevent updates being lost or inconsistencies in the data arising • Record is locked when a user retrieves it for editing or updating • Anyone else attempting to retrieve it is denied access until the transaction is completed