Interaction with database
Metadata
data that describes structure & properties of data -> proper understanding & use of data
Database metadata
Types of databases
Transactional information
collected & used for day-to-day operational needs in organizations
Analytical information
collected & used for analytical tasks (based on transactional info)
Operational database
collects & presents transactional info in support of daily operational procedures & processes
Analytical database
collects & presents analytical info in support of analytical tasks
Use of types of databases
Types of databases: Differences
ER modeling
ER diagram (ERD)
= result of ER modeling; blueprint of database
Relationship-Types
Cardinality constraints
show how many instances of one entity can be associated with instances of another entity
Maximum cardinality
II
I0
> I
> O
Relationship attributes
Relational database model
Column Synonyms
Relation
Table in a relational database:
-1. & 2. each column & row = unique name
- 3. All values in each column must be from the same (predefined) domain & single valued
- 4. order of columns & rows is irrelevant
- 5. + 6. must have (non NAN values) primary key
Primary Key