7.1 The concept of a database/ 7.2 The concept of a relational database/ 7.3 Structured Query Language

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/33

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:03 PM on 4/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

34 Terms

1
New cards

Database

A structured collection of data

2
New cards

Record

A collection of data for one object

3
New cards

Field

Used in a database to provide category headings for each piece of data

4
New cards

Table

Holds a collection of records

5
New cards

Primary key

Used to give each record a unique identifier

6
New cards

Relational Database

A database with multiple tables that are linked together using keys

7
New cards

Data redundancy

When the same piece of data is held in several places, leading to inconsistencies and wasted storage space

8
New cards

Data inconsistency

When the same data exits in multiple places but instances of the data aren’t identical

9
New cards

Foreign key

A field in a table that references the primary key of another table

10
New cards

Advantages of relational databases

Minimises inconsistencies and eliminates data redundancies

11
New cards

3 types of entity relationships

One-to-one, one-to-many, many-to-many

12
New cards

List of fields to be displayed

SELECT

13
New cards

List the table or tables where the data will come from

FROM

14
New cards

List of search criteria

WHERE

15
New cards

List the fields that the results are to be stored on

ORDER BY ASC/DESC

16
New cards

Data type that stores whole numbers

Integer

17
New cards

Data type that stores decimal numbers

Real/ Float

18
New cards

Data type that stores dates and times

Date, Time, Datetime

19
New cards

Data type that stores fixed strings up to 8,000 characters

Char

20
New cards

Data type that stores variable strings up to 8,000 characters

Varchar

21
New cards

Data type that stores variable length strings up to 2GB of data

Text

22
New cards

Write an SQL query that finds the names (PetName) and dates of birth (DateOfBirth) of all dogs (Type) born on or after 1st January 2019 (from Animal)

SELECT PetName, DateOfBirth

FROM Animal

WHERE DateOfBirth >= 01/01/2019

AND Type = “dog”

23
New cards

Wildcard to display all fields in the records that satisfy given criteria

*

24
New cards

Equal to a value within a set of values

IN(…)

25
New cards

Within a range, including the two values which define the limits

BETWEEN … AND …

26
New cards

Field does not contain a value

IS NULL

27
New cards

Syntax for specifying a field in a relational database (tablename is option unless the field name appears in more than one table)

tablename.fieldname

28
New cards

Linking two tables in SQL

WHERE tablename.primary key = othertablename.foreignkey

29
New cards

Wildcard for 0, 1 or multiple characters

%

30
New cards

Wildcard for one single character

_

31
New cards

Used in a WHERE clause to search for a specified pattern in a column

LIKE

32
New cards

Insert a new record into a database

INSERT INTO tableName(column1, column2, …)

VALUES (value1, value2, …)

33
New cards

Amend a record in a database

UPDATE tableName

SET column 1 = value1, column2 = value2, …

WHERE column = value

34
New cards

Delete a record from a database

DELETE FROM tableName

WHERE column = value