Chapter 1 Flashcards
(18 cards)
Database-Management System (DBMS)
A collection of interrelated data and a set of programs to access those data
Five disadvantages of file processing systems:
- Redundancy & inconsistency
- Difficulty in access
- Data isolation
- Atomic problems
- Integrity problems
File processing systems problems: data redundancy & inconsistency
Data is stored multiple times and in different structures, sometimes not up to date
File processing systems problems: difficulty in access
Programs might not exist to access data in a desirable manner
File processing systems problems: data isolation
Data is sometimes scattered across files, therefore hard to access
File processing systems problems: atomicity problems
Data must be processed at once, in order to ensure a correct processing
File processing systems problems: integrity problems
Its hard to implement new constraints to data
Three kinds of data models
- Relational model: tables, record based, fixed format
- Entity-relationshop model: data stored in objects or entities
- Semi-structured data: XML or JSON, dictionaries/lexicons
Three levels of database organization
- Physical schema: the physical storing of data
- Logical schema: what data is stored and what’s the relation to other data
- View level: representation of data, subschemas
Instance
Collection of certain data at certain moment
DDL & DML
data-definition language & data-manipulation language
DDL has three required constraints
- Domain constraints
- Referential integrity
- Authorization
DDL constraint: domain constraints
A domain of possible values must be associated with every attribute
DDL constraint: referential integrity
Some data must be relational to data in another relation in order to make sense, for referential integrity
DDL constraint: authorization
Four levels of authorization we may want to give a user:
1. Read authorization
2. Insert authorization
3. Update authorization
4. Delete authorization
Difference between procedural DMLs and declarative DMLs
Procedural DMLs require a user to specify what data is needed and where to get it, whereas declarative DMLs doesn’t need the specification of where to get the data from
Application program
Program that accesses interacts with databases
Five phases of database design
- Specification of user requirements
- Conceptual design phase
- How to implement: employ a set of algorithms
- Logical design phase
- Physical design phase