database midterm Flashcards
Data
Raw Info
Field
Group of info with meaning
Record
One or more fields connected
File
Collection of related records
Data Redundancy
Same data is stored unnecessarily at different places
Data Independence
Data access is unaffected by changes in the physical data storage
Database Management System (DBMS)
A collection of programs that manages the database
Main Components of a Database System
Hardware, Software, Data, People, Procedures
Metadata
Data about data
Common Problems of Spreadsheets
- Lengthy Development Times
- Difficulty getting quick answers
- Complex system admin
- Lack of security and data sharing
Importance of Data Modelling
Creates a sound data structure that real-world operations can depend on
Business Rule
A brief and precise description of a policy or procedure within an organization
Features of the Relational Data Model
- Used with Query Language and RDBMS
- Lower data redundancy
Entity Relational Data Model (ERDM)
A simple, graphic database structure model for people to interpret
Three Types of Relationships
- 1 to 1; 1:1
- 1 to Many; 1:M
- Many to Many: M:N
Table
A 2-D structure composed of intersecting rows and columns
Big Data Phenomenon
A movement to find new and better ways to manage large amounts of data while providing high performance and scalability at a reasonable cost
3 V’s
Volume: amount of data sored
Velocity: speeds at which data grows and processed to get info
Variety: data can be collected in different data format
Sparse Data
Data with nulls or empty files
Logical Independence
Changing the internal model without affecting the model
Physical Independence
Physical model can be changed without affecting the internal model
Entity Integrity
Each row in a table has its own unique identity primary key
Referential Integrity
Every reference to an entity instance by another entity instance is valid
Requirements to be Union-Compatible
Both relations must have the same amount of attributes and the corresponding columns must share the same domain
Natural Join
Link tables by selecting only rows with common values in their common attribute
Equijoin
Links tables on the basis of an equality condition that compares specified columns of each table
Outer Join
Matched pairs are retained. Any unmatched values in the other table would be left null
Avoid Homonyms and Synonyms
Homonyms use the same name as the attributes
Synonyms indicate the sue of a different name to describe the same attribute
Two Conditions Met to be Classified as a Weak Entity
- Entity must show the existence dependence
- Entity must intake the primary key of its parent entity
Cardinality
Minimal and maximum number of an entity. Useful for setting limits.
Derived Attributes
An attribute calculated from existing values
Existence Dependence
An entity can only exist when associated with another entity
Relationship Degree
Specifies the number of different and unique entities associated with a relationship in a database
Binary Relationship
Two entity association