8 - data bases Flashcards
database
structured collection of items of data that can be accessed by different applications programs
table
group of similar data withe rows and columns
record
a row - one instance if an entity (tuple)
tuple
a row - one instance if an entity (record)
field
column - data item stored for an entity eg name (attribute)
entity
anything that can have data stored about it eg person place thing
attribute
column - data item stored for an entity eg name (field)
cadidate key
the smallest number of attributes where no row has the same value (all unique)
primary key
unique identifier of a table
secondary key
alternative to the primary key
foreign key
set of attributes that refer to another tables primary key
relationship
one table in a database has a foreign key that refers to a primary key in another table in the database
1:1
1:m
m:1
m:m
(the many always has the foreign key)
referential integrity
database doesn’t contain any values of foreign key that don’t match the corresponding primary key
index
a data structure built from one or more columns in a database table to speed up searching
ER diagram
a graphical representation of a database and the relationships between
normalisation
the process of organising data to be stored in a database into 2 or more tables and relationships between the tables (redundancy is reduces)