































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
































Welcome on board!
This module will introduce you to Database Management Systems, especially Relational Databases.
Building Entity Relationship Models is the first step to put Ideas into Models.
Finishing this module, you will be able to:
Describe the need for DBMS(Database Management Systems)
Explain the pros and cons for different DBMS
Understand and explain Entities and Attributes
Understand and explain Relationships and Cardinalities
Draw ERD(Entity Relationship Diagrams)
Draw ERAD(Entity Relationship Attribute Diagrams)
Data: $
Information: A share of GameStop as of Jan 29
Knowledge: Comparing to the price $17.25 of a share as of Jan 4, the price rises around 2000% in a month
Intelligence: Buy or Sell?
Data
Information
Knowledge
Intelligence
Database
A structure that contains data
Organize Data through
Entities
Attributes
Relationships
A program, or a collection of programs through which users interact with a database
Popular DBMS:
Microsoft Access
MySQL
PostgreSQL
MongoDB(NoSQL)
Increased complexity
Greater impact of failure
More difficult recovery
Larger file size
In short, when the advantages cannot outweigh the disadvantages:
Database is small with a simple structure
Applications are simple, special purpose and relatively static.
Applications have real-time requirements
Examples: Traffic signal control
ECU patient monitoring
Concurrent, multi-user access to data is not required.
Data users work with directly by entering, updating and viewing.
For our purposes, data will be generally stored in tables with some relationships between tables.
Each table has one or more columns. A set of columns forms a database record.
Data about data.
Data that describe how user data are stored in terms of table name, column name, data type, length, primary keys, etc.
Metadata are typically stored in System tables or System Catalog and are typically only directly accessible by the DBMS or by the system administrator.
Many DBMS have storage facilities for forms, reports, queries and other application components.
Applications Metadata is accessed via the database development programs.
Example: Look at the Documentor tool in MS Access. It can also show metadata for Queries, Forms, Reports, etc.
To design a Relational Database, we start with an Entity Relationship Model (ER Model):
Describes what are the entities the database is going to record
Describes what are the attributes (and identifiers) of the entities
Describes how the relationships among these entities
To represent the Entity Relational Model in an explicit way, we use the Entity Relationship Diagram.
The identifiable abstract object of interest (in Programming, we call Class)
Examples:
Students
Employees
Companies
Products
Transactions
Characteristics of an entity of interest.
Examples:
Students: FirstName, StudentID, Major
Employees: ID, SSN, ContactInfo, Department, Supervisor
Companies: LegalName, Location, Category, Rank
Products: SKU#, Category, InStockPrice, InStockQuantity
Transactions: CustomerID, StoreID, ProductID, ProductDescription, Price, Quantity, Tax, Total, Time