L9 - Entity Reation Modeling Flashcards
What is a database?
- Shared collection of logically related data (with description)
- Designed to meet the needs of an organisation
- Which is stored and accessed electronically from a computer system
What is the database approach?
What is a DBMS?
What is a DBMS (Database Management System)
Software that enables users to:
- Define a database
- Create a database
- Maintain a database
- To control access to the database
How can users interact with a DBMS?
- General inquiry facility to the data via Query Language
- SQL
- Standard User Interface
- Users can generate their own queries
What services does a DBMS provide
- Preserve integrity of the data
- Defined by constrains
- Preserve data independence
- Protecting users from system changes
- Extra Utilities
- Import/Export
- Performance profiling
What is a an application of a Database Context?
A computer program that interacts with the database by issuing an appropriate request (SQL Statement) to the DBMS
- Can be a CLI
- Typically a GUI
- Wrapped around preset queries
What are the advantages of the Database Approach?
- Control of data redundancy
- Data consistency
- Easier to share data
- Improved data independent + integrity
What are the disadvantages of the Database Approach?
- Complex
- Running cost of DBMS
- Conversion cost
- Performance
- Higher impact of failure
What is the realtional model?
- Replaces tree/network models
- Basis for set-oriented data manipulation language (SQL)
- High degree of data independence
- Users cant make physical changes
- Improved control of self-describing, consistency and redundancy
What are data models?
- Represents the operational requirements of an organisation
- Made up of
- Structural part
- Manipulative part
- Integrity Rules
What is the Relational Data Structure?
Relational data model components:
- Relation
- Attribute
- Tuple
- Domain
- Relational Database
What the properties of realtional tables?
- Distinct table names
- Distinct column/attribute names
- Distinct record/row tuple is distinct
- Atomic cells
- Column values are from the same domain
What are the different types of realtional keys?
Superkey
- Any set of columns that uniquely identifies all records
- Composite key has > 1 column
Candidate key
- Minimal set of columns
Primary Key
- Chosen candidate
Alternate Key
- Remaining candidate
Foreign Keys
- Represents a relationship between two tables
- Provides controlled redundancy
What is relational integrity?
- Every column is subject to domain contrints
- Entity integrity
- Referential integrity
- Ensures consistency
- Allowing minimal redundancy
- Allows for set manipulation operations to be reliably performed on data across tables
What are integrity rules?