Intro to Database Flashcards
Why do we need to manage data?
• Organizations could not function long without critical business data
• Cost to replace data would be very high
• Time to reconcile inconsistent data may be too long
• Data often needs to be accessed quickly
• Data should be:
- Cataloged
- Named in standard ways
- Protected
- Accessible to those with a need to know
- Maintained with high quality
A collection of data that is organized in a way that facilities retrieval and reporting
Database
Uses of Database
- Databases are commonly used to store data which are too large to be managed on a paper or through simple spreadsheets
- Most businesses use databases for accounts, inventory, personnel and other record keeping
- Databases are also becoming more widely used by home users for address books, CD collections, recipe archives, etc.
Advantages of Database Approach
- Reduction in data redundancy
- Maintenance of data
- Data are self-documented or self-descriptive
- Avoidance of inconsistencies
- Reduced cost of software development
- Security restrictions
Types of Database Software Packages
- File Management System
* Database Management System
‘flat-file’
records from only one file can be related at a time
File Management System
Allow records from multiple files to be related and manipulated at the same time
Database Management System
Collection of interrelated data and set of programs to access the data, that provides an environment that is both convenient and efficient to use
Database Management System
Database examples
- Customer lists
- Records related to hobbies or collections
- Employee records
- Inventories
- Sales records
- Student grades and information
- Catalogs of tapes or books
Levels of abstraction
Physical level
Logical level
View level
Describes how a record is stored
Physical level
Describes data stored in database and the relationships among the data
Logical level
Application programs hide details of data types; views can also hide information for security purposes
View level
A way for human to visualize the relationships between records that are filed in complex database management systems
Data Model
A collection of tools for describing data, data relationships, data semantics and data constraints
Data Model
Types of data model
Hierarchical data model
Network data model
Relational data model
Object-oriented data model
The oldest data model
Has top-down design; resembles an organizational chart or an inverted tree
Hierarchical data model
Each record at one level is linked to (or has a parent at) the next level
Hierarchical data model
Multiple relationships are establish between different braches of the data
Network data model
The most flexible approach to database organization
Records can be related according to the contents of key fields, or common categories
Relational data model
The newest data model
They link objects
Object-oriented data model
Object-based logical models
• Entity-relationship model
• Object-oriented model
• Semantic model
• Functional model