Docsity

Information technology project, Essays (high school) of Technology

Partial preview of the text

Download Information technology project and more Essays (high school) Technology in PDF only on Docsity!

Module 1: Entity Relationship Models

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.

Learning Objectives

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)

Example

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?

What Is Data?

Data

Information

Knowledge

Intelligence

Database Solution

Database

A structure that contains data

Organize Data through

Entities

Attributes

Relationships

Database Management Systems

A program, or a collection of programs through which users interact with a database

Popular DBMS:

Microsoft Access

MySQL

PostgreSQL

MongoDB(NoSQL)

Disadvantage of DBMS

Increased complexity

Greater impact of failure

More difficult recovery

Larger file size

When is a DBMS Not Appropriate?

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.

User Data

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.

Metadata

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.

Applications Metadata

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.

Let's Get Started

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.

Entity

The identifiable abstract object of interest (in Programming, we call Class)

Examples:

Students

Employees

Companies

Products

Transactions

Attributes

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