types of DB models
hierarchical, network, relational
hierarchical DB model
tree-based approach based on parent-child relationships. each record is linked to all its child records (customer -> orders -> items)
network DB model
improves hierarchical, allows records to have more than one parent, can access data from multiple points
table
“relation”
matrix of intersecting rows and columns
entity
object/concept about which data is collected and stored
entity instance
row in relational table
attributes
characteristics of entity (columns)
relationships
connections amongst data, used to connect tables
structured query language used for
“what” without “how”
t/f: questions do not need to be known at design time
true
database
set of relations
relation
set of tuples (table)
tuple
row of a relation, each cell consists of specific values for particular variable/attribute
primary key
cell value that uniquely identifies a tuple
foreign key
cell value which is exactly equal to the primary key value in some other relation
properties of relations