Slide 2 Flashcards
(36 cards)
Database Fundamentals
Database Fundamentals & Advantages
Relational Databases
Database Management Systems (DBMS)
Practice designing databases
Understanding Data as the Backbone of Information
Data Quality
Granularity, redundancy
Data integrity constraints
Access controls
The data hierarchy
Database - file- record-field-byte-bit
Database
Collection of data organized to serve many applications by centralizing data and controlling redundant data
Database management system (DBMS) - software through which users and application programs interact with a database (e.g. Microsoft Access)
Software that manages one or more databases Interfaces between application programs and physical data files Separates logical and physical views of data ( How a data looks to the user (logical) How data is actually stored (physical) )
Enables organization to centralize data management and security
Files are maintained separately by different departments (or apps) - if every app manages its own data
Data redundancy: Presence of duplicate data in multiple files
Data inconsistency: Same attribute has different values in different applications
Lack of flexibility
Poor security
Lack of data sharing and availability
Database examples:
Web applications like Wordpress use a database (typically MySQL)
Search engines use a (massive) database to store pages and indexes
iPhone Apps can use the SQLite database to store and manage their data
Enterprise Applications used by accounting, marketing, and operations use databases to centralize and share information
Database fundamentals
Database – maintains information about various types of objects (inventory), events (transactions), people (employees), and places (warehouses)
Relational database (dominant model) – stores information in the form of logically related twodimensional tables
Table
Record(row)
Field(columns)
Table – a collection of similar records
Record (row) – a person, place, thing, transaction, or event about which information is stored
Fields (columns) – characteristics or properties of an record The columns in each table contain the fields
Database Structure
- Represent data as two-dimensional tables called relations or files
- Each table contains data on entity and attributes
Primary key
Field in table used for key fields
Foreign key
Primary key used in second table as look-up field to identify records from original table
• (When a field is used in one table to create a relationship, but it is NOT a primary key, it is then called a foreign key)
Row (tuples)
records for different entities
fields (columns)
Represents attribute for entity
The big three in database
table, queries, reports
Parts of table
Column aka Field, Attribute, or Property Row aka Record or Tuple
Primary Key Foreign Keys
Relationships
Use Foreign Key to link
One-to-One, One-to-Many (Many-to-Many)
Database advantages from a business perspective includ
Increased flexibility
Increased scalability (Reduce and Increase)and performance
Reduced information redundancy (Repeating information)
Increased information integrity (quality)
Increased information security
Information granularity尺度
refers to the extent of detail within the information
Factors affecting granularity
Level of abstraction
(fine or detailed, coarse or summarized)
Frequency of gathering data items
Characteristics of high quality Information:
Accuracy Completeness Consistency Uniqueness Timeliness
The four primary sources of low quality information include
- Online customers intentionally enter inaccurate information to protect their privacy 2. Information from different systems have different entry standards and formats 3. Call center operators enter abbreviated or erroneous information by accident or to save time 4. Third party and external information contains inconsistencies, inaccuracies, and errors
Potential business effects resulting from low quality information include:
Inability to accurately track customers
Difficulty identifying valuable customers
Inability to identify selling opportunities
Marketing to nonexistent customers
Difficulty tracking revenue due to inaccurate invoices
Inability to build strong customer relationships
A well-designed database should: (increased flexibility)
Handle changes quickly and easily
Provide users with different views
Have only one physical view (Physical view – deals with the physical storage of information on a storage device)
Have multiple logical views (Logical view – focuses on how users logically access information)