Slide 2 Flashcards
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