Back to marketplace

3.7 Relational Databases and SQL

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)

A database is a persistent collection of organised storage that can be retrieved through queries

#2
Front (Question)

What is SQL?

Back (Answer)

Structured Query Language

#3
Front (Question)

What is data redundancy?

Back (Answer)

Duplicate pieces of data

#4
Front (Question)

What is data inconsistency?

Back (Answer)

Storing repeated data in the same table can lead to inconsistencies in the data

#5
Front (Question)

Range check

Back (Answer)

A number or date is within a sensible/allowed range i.e. Month between 1 and 12

#6
Front (Question)

Type check

Back (Answer)

Data is the right type

#7
Front (Question)

Length check

Back (Answer)

Text entered is not too long or too short - for example a password is between 8 and 15 characters

#8
Front (Question)

Presence check

Back (Answer)

Checks that the data has been entered, i.e. The field has been left blank

#9
Front (Question)

Format check

Back (Answer)

Checks the format is correct, for example, a postcode or email is correct

#10
Front (Question)

List check

Back (Answer)

Making sure the user enters the right thing from a list. They can only select an option from a drop-down menu.

#11
Front (Question)

What wildcard is used to represent everything?

Back (Answer)

*

#12
Front (Question)

SQL SELECT

Back (Answer)

Select * FROM table1

#13
Front (Question)

SQL WHERE

Back (Answer)

Select * FROM table1 WHERE Forename = ‘Bob’ • If the value is a string (or varchar, text etc.) then it requires quotation marks.

#14
Front (Question)

SQL SELECT SORTING

Back (Answer)

Select Forename, Surname FROM table1 ORDER BY Surname ASC • ASC = Ascending • DESC = Descending

#15
Front (Question)

SQL INSERT

Back (Answer)

INSERT INTO table1 (userId, Forename, Surname, Age, Height, MobileNumber) VALUES (1, ‘Bob’, ‘Jones’, 47, 1.87, ‘07834 577780’) • If the value is a string (or varchar, text etc.) then it requires quotation marks.

#16
Front (Question)

SQL UPDATE

Back (Answer)

UPDATE table1 Surname = ‘Rich’ WHERE userId = 1 It is the safest option to use the primary key as if you use another field, then you might change someone else’s details as well.

#17
Front (Question)

SQL DELETE

Back (Answer)

DELETE FROM table1 WHERE userId = 1

#18
Front (Question)

SQL Joining two tables

Back (Answer)

SELECT table1.Forename, table1.Surname, table2.Address FROM table1 INNER JOIN ON table1.userId = table2.userId WHERE userId = 1

#19
Front (Question)

Primary key

Back (Answer)

A primary key is a field in a database table and acts as a unique identifier for each record.

#20
Front (Question)

Foreign key

Back (Answer)

It is the reference to the primary key of another table. It is used to create a link/relationship between two tables.

#21
Front (Question)

What is an integer?

Back (Answer)

A whole number

#22
Front (Question)

What is a float?

Back (Answer)

A number with a fractional component (a decimal)

#23
Front (Question)

What is datetime

Back (Answer)

Date and Time

#24
Front (Question)

What is a char? In databases

Back (Answer)

A string of fixed length (up to 8,000 characters long)