VA Session 2 ! Flashcards
Interaction with database
- Database
- DBMS
- front End Application (= program with easy interface to use (e.g. HR system))
Metadata
data that describes structure & properties of data -> proper understanding & use of data
Database metadata
- represents the structure of database
- Database content that is not the data itself (data about the data)
- e.g. Names of data structures, data types, data descriptions
Types of databases
- Transactional = Operational
- Analytical
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
- Typically maintains & uses many operational data sources
- data warehouse created as separate data store because:
- performance of operational day-to-day tasks diminished when competing with analytical queries
- structure of database not efficient for operational & analytical purpose
Types of databases: Differences
- Operational Data:
- time-horizon days / months, detailed, current
- used by all types of employees, subject oriented
- small amounts used, high frequency of access, can be updated, non-redundant
- Analytical Data:
- time years, summarized (&/or detailed), values over time (snapshots)
- Used by narrower set of users, application oriented
- large amounts used, low/modest frequency of access, read & append only, no redundancy
ER modeling
- Entity-relationship
- conceptual database modeling technique that
- Organizer & graphically represents
- the requirements of the collection process
- good to do before database to know where to put what & not move everything around often
ER diagram (ERD)
= result of ER modeling; blueprint of database
Relationship-Types
- One-to-one = one row on one table is connected to one row in other table
- One-to-many = one row in one table is connected to many rows in other table
- Many-to-many = many rows in one table are connected to many rows in other table
Cardinality constraints
show how many instances of one entity can be associated with instances of another entity
Maximum cardinality
- first
- One I
- Many <
II
- One Mandatory
- 1
I0
- One Optional
- 1 or 0
> I
- Many Mandatory
- > = 1