database

0.0(0)
studied byStudied by 4 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/140

flashcard set

Earn XP

Description and Tags

Cambrdige AS level computer science 2025. Textbook references: Cambridge International AS and A level computer science coursebook Sylvia Langfield, David Duddell 2019 press ||| Cambrdige International AS and A Levels Computer science by David Wastson, Helen Williams press 2019

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

141 Terms

1
New cards

what is a database

structured collection of items of data

2
New cards

how can a database be accessed

through different application programs

3
New cards

what is a relational database

where data items are linked by internal pointers

4
New cards

what is a table

group of similar data

5
New cards

what is a record

row in a table in a database

6
New cards

what is a field

column in a table in a database

7
New cards

what is a tuple

one instance of an entity represented in a row

8
New cards

what is an entity

anything that can have data stored about it

9
New cards

what are attributes

an individual data item stored for an entity

10
New cards

what is an example of attribute database for a human

name, address, date of birth

11
New cards

what is a candidate key

an attribute or smallest set of attributes in a table

12
New cards

what key represents no tuple having the same value

candidate key

13
New cards

what is a primary key

a unique identifier for a table

14
New cards

what is a secondary key

a candidate key that is an alternative to the primary key

15
New cards

what is a foreign key

a set of attributes in one table that refer to the primary key in another table

16
New cards

what is a relationship

one table in a database has a foreign key that refers to a primary key in another table in the database

17
New cards

what is referential integrity

does not contain any values of a foreign key that are not matched to the corresponding primary key

18
New cards

what is an index

built from one or more columns in a database table to speed up searching for data

19
New cards

what is entity-relationship model

a graphical representation of a database and the relationships between the entities

20
New cards

what does ER stand for

entity relationship

21
New cards

what is normalisation

organising data to be stored in a database into two or more tables and relationships between the tables

22
New cards

what does normalisation help with

data redundancy minimisation

23
New cards

what is first normal form

status of a relational database in which entities do not contain repreated groups of attributes

24
New cards

what does 1NF stand for

first normal form

25
New cards

what is second normal form

status of a relational database in which entities are in 1NF and any non-key attributes depend upon the primary key

26
New cards

what is third normal form

entities are in 2NF and all non-key attributes are independent

27
New cards

what is composite key

form a primary key to provide a unique identifier for a table

28
New cards
<p>what does this picture show </p>

what does this picture show

entity relationship diagram

29
New cards

what is a file

collection of items of data

30
New cards

what can individual elements of data called

data items

31
New cards

what do you need to consider when changing a record in the another program

structure needs to be the same

32
New cards

what do you need to consider if you have to change the structure of a record when updating

you must rewrite the structure of others

33
New cards

what is the main issue with not storing with a file-based approach

inconsistency, redundant, non independent data

34
New cards

what is a word for an electronic filing cabinet

database

35
New cards

what can you do in a database

insert, retrieve, update, cross-reference data

36
New cards

what kind of database has internal pointers linking data items

relational database

37
New cards

which is better, database approach or fie-based approach

database approach

38
New cards

what makes database approach better

less storage used, no redundancy, independent data, consistent data

39
New cards

where are attributes on database tables

columns

40
New cards

where are entities on database tables

rows

41
New cards
<p>What approach is this</p>

What approach is this

File

42
New cards
<p>What approach is this</p>

What approach is this

Database

43
New cards

what should be thought of when trying to keep relational integrity

database must not contain values of a foreign key that are not matched in corresponding primary key

44
New cards

what are the form or relationships in databases

one to one

one to many

many to one

many to many

45
New cards

what are candidate key in a table

all attributes

46
New cards

what key is usually always there

primary key

47
New cards

if it isn’t primary key, what is it in a table

secondary key

48
New cards

what else is the primary key in a table

candidate key

49
New cards
<p>what cardinality of relationships is this</p>

what cardinality of relationships is this

one to one

50
New cards
<p>what cardinality of relationships is this</p>

what cardinality of relationships is this

one to many

51
New cards
<p>what cardinality of relationships is this</p>

what cardinality of relationships is this

many

52
New cards
<p>what cardinality of relationships is this</p>

what cardinality of relationships is this

one or more

53
New cards
<p>what cardinality of relationships is this</p>

what cardinality of relationships is this

one and one only

54
New cards
<p>what cardinality of relationships is this</p>

what cardinality of relationships is this

zero or one

55
New cards
<p>what cardinality of relationships is this</p>

what cardinality of relationships is this

zero or many

56
New cards
<p>what symbol does this represent in databases </p>

what symbol does this represent in databases

entities

57
New cards
<p>what symbol does this represent in databases </p>

what symbol does this represent in databases

attributes

58
New cards
<p>what symbol does this represent in databases </p>

what symbol does this represent in databases

relationships among entities

59
New cards
<p>what symbol does this represent in databases </p>

what symbol does this represent in databases

attributes to entities and entity sets with other relationship types

60
New cards
<p>what symbol does this represent in databases </p>

what symbol does this represent in databases

multi-valued attributes

61
New cards
<p>what symbol does this represent in databases </p>

what symbol does this represent in databases

weak entity

62
New cards

what is cardinality

number of elements in a set

63
New cards

what will happen to tables if they are not normalised

they will be larger with more data stored

64
New cards

what happens to data if it was not normalised in a table

becomes redundant

65
New cards

what is the problem of a non-normalised table

harder to update and difficult to extract data

66
New cards

what happens when you add data to a non-normalised table

you will have to change everything repeated everywhere manually

67
New cards

what can normalise tables

1NF, 2NF, 3NF

68
New cards

what does 1NF do

do not have repeated groups/attributes

69
New cards

what does 2NF do

any non-key attributes depend upon primary key and no partial dependencies

70
New cards

what does 3NF do

all non-key attributes are independent so there are no non-key dependencies

71
New cards

where are entitles in 2NF from

in 1NF

72
New cards

where are entities in 3NF from

2NF

73
New cards

mandatory or option cardinality? : one to many

mandatory

74
New cards

mandatory or option cardinality? : one or more

mandatory

75
New cards

mandatory or option cardinality? : one and only one

mandatory

76
New cards

mandatory or option cardinality? : zero or one

optional

77
New cards

mandatory or option cardinality? : zero or many

optional

78
New cards

what does it mean by optional cardinality

may or may not participate in a relationship with another entity

79
New cards

what does it mean by mandatory cardinality

must participate in a relationship with another entity

80
New cards

what is a compound key

two or more fields are needed to create a unique value

81
New cards

what does ASC mean in databases

ascending order

82
New cards

what does DESC mean in database

descending order

83
New cards

what does ORDER BY mean database

sorts data in ascending or descending

84
New cards

what does UPDATE do

change values in one or more columns

85
New cards

what does DBMS stand for

Database management system

86
New cards

what is DBMS

system software for creation and manipulation of a database

87
New cards

what is data management

organisation and maintenance of data in a database to provide the information required

88
New cards

what is data dictionary

set of data that contains metadata for a database

89
New cards

what is metadata

data about other data

90
New cards

what is data modelling

analysis and definition of the data structures required in a database and to produce a data model

91
New cards

what is logical schema

a data model for a specific database that is independent to DBMS used to build that database

92
New cards

what is access rights database

permissions given to database users to access, modify or delete data

93
New cards

what is developer interface

feature of a DBMS that provides developers with the commands required for definition, creation and manipulation of a database

94
New cards

what does SQL stand for

structured query language

95
New cards

what is SQL

language used with relational databases for data definition and data modification

96
New cards

what is query processor

features of a DBMS that processes and executes queries written in SQL

97
New cards

how does data redundancy issue get solved

storing data in separate linked tables

98
New cards

what issues does DBMS flag to improve data redundancy

accidental deletion or errors

99
New cards

how do you fix data inconsistency issue

storing most items only once

100
New cards

how do you fix data dependency issue

changes made have little or no effect on the applications using the database