340 likes | 349 Views
This course covers the concepts and techniques of designing and creating databases for effective information systems management. Topics include data and database definitions, database structures, and using Access2000 for relational databases.
E N D
Management of Information Systems: 45-870 Mini-3 Spring 2000
Agenda • Announcements and Reminders • Technology Byte Presentations • In-Class Exercise • Designing and Creating Databases • Data/Database Definitions and Concepts • Database Structures • IT Exercise II Assigned • Using Access2000 to Create Relational Databases
Announcements • Technology Byte Presentations • Today (1/27): • Section A: E-Team, Tigers • Section B: E-Sales, The Masters • Tuesday (2/1): • Section A: DeathSpiral.Com, E-Sixpack • Section B: Jeree’s Kids, Hot TaMaLes • IT Exercise I Due Today
In-Class Exercise • Reflection on IT Exercise I: • Pros and cons of using an HTML generator (specifically FrontPage) • Reflections on use • What process did you use as a team to do this assignment? • What aspects of your process were effective? Problematic? • How do you feel about your end product? • Based on this experience, what managerial concerns or challenges do you have in relation to developing web pages for company intra/ inter/ extranets?
The IT Architecture TELECOMMUNICATIONS SOFTWARE & DATA HARDWARE
Key Definitions • Data: • Information: • File: • Database: • Metadata:
Disadvantages of Traditional File Processing Systems • Data Dependence • Data Redundancy • Limited Data Sharing • Long Development Times • Excessive Maintenance
Advantages of a Database Approach • Minimal Data Redundancy • Data Integration • Data Independence • Improved Data Sharing • Enforcement of Consistent Standards and Constraints • Better Access • Security, Backup/Recovery, Concurrency
Database Concepts • Entities: • Examples:
Database Concepts • Relationships: • Types: • 1:1 • 1:M or M:1 • M:M
Database Concepts • Attributes: • Examples:
Database Concepts • Records: • Example:
Database Concepts • Keys: • Types and Examples:
Database Structures • Physical Structure: how data is stored on and accessed from tape or disk. • Logical Structure: how the data is perceived by the user. • communication tool • design aid
Database Structures • 3 common logical DB structures • Hierarchical • Network • Relational (most popular) • newest logical DB structure • Object Oriented
7345 | Professor | Ludwigsohn | Comp.Sci. Winter 1995 | 2 |Promotions Fall 1996 | 3 |None Intro | 7001 | 3 | 45 VBasic | 7232 | 4 | 25 VBasic2 | 7233 | 4 | 25 Hierarchical Data Structure
Hierarchical Data Structure • Requires well-defined, prespecified access path; supports 1:M • Good for applications that involve very few types of queries but lots of data • Very efficient but inflexible • Not appropriate for business users
7345 | Professor | Ludwigsohn | Comp.Sci. Winter 1995 | 2 |Promotions Fall 1996 | 3 |None Intro | 7001 | 3 | 45 VBasic | 7232 | 4 | 25 VBasic2 | 7233 | 4 | 25 Network Data Structure
Network Data Structure • More flexible (supports M:M) but still requires pre-specified path • Not as efficient; must limit links among files or volume of data • Difficult to modify and add links between files • Not appropriate for business users
Relational Data Structure Faculty Table Dept Table Course Table
Relational Data Structure • Most flexible; if two tables share a field, they can be linked • May not be efficient for high transaction volumes • Easy to modify • Most appropriate for business users
Object Oriented structure • not yet widely used in practice • passive: separates object attributes from methods • active: stores object attributes and methods together
Normalizing Database Structures • Why does anyone need to do this: • redundancy • update efficiency • possible inconsistencies
Steps in “normalizing” data • 1. break repeating groups of fields into separate entities, each with its own unique key (first normal form) • 2. Identify fields that are facts about only a portion of a key. Split into separate entities. (second normal form) • 3. Identify fields that are facts about some other non-key field. Split into separate entities. (third normal form)
EXAMPLE: Sales Report Data • Data includes: • Sales Person # • Sales Person Name • Sales Area • Customer Name • Customer Number • Warehouse Number • Warehouse Location • Sales Amount
Sales Report Data: Additional Information • Only one number is assigned to each sales person • Only one number is assigned to each customer • Only one number is assigned to each warehouse • A salesperson serves many customers • A customer generates many sales • Customers receive their items from one warehouse
Step#1: Pull out repeating groups (First Normal Form) FROM: SalesReport (SalesPerson#, SalesPerson-Name, Sales-Area, Customer#, Customer-Name, Warehouse#, Warehouse-Location, Sales-Amount) TO: SalesPerson (SalesPerson#, SalesPerson-Name, Sales-Area) SalesPerson-Customer (SalesPerson#, Customer#, Customer-Name, Warehouse#, Warehouse-Location, Sales-Amount)
Step#2: Pull out facts about a portion of the key (Second Normal Form) FROM: SalesPerson-Customer (SalesPerson#, Customer#, Customer-Name, Warehouse#, Warehouse-Location, Sales-Amount) TO: Sales (SalesPerson#, Customer#, Sales-Amount) Customer-Warehouse (Customer#, Customer-Name, Warehouse#, Warehouse-Location)
Step#3: Pull out facts about a non-key attribute (Third Normal Form) FROM: Customer-Warehouse (Customer#, Customer-Name, Warehouse#, Warehouse-Location) TO: Customer (Customer#, Customer-Name, Warehouse# ) Warehouse (Warehouse#, Warehouse-Location)
Normalized Relations for this Data Sales (SalesPerson#, Customer#, Sales-Amount) SalesPerson (SalesPerson#, SalesPerson-Name, Sales-Area) Customer (Customer#, Customer-Name, Warehouse#) Warehouse (Warehouse#, Warehouse-Location)
From Normalized Relations to an Entity Relationship Diagram • each normalized relation becomes an entity • identifier of each normalized relation becomes the primary key • secondary identifier of each normalized relation becomes a foreign key • Characteristics of each normalized relation determine relationship between entities
Entity Relationship Diagram Example (SalesPerson#, SalesPerson-Name, Sales-Area) SalesPerson (Customer#, Customer-Name, Warehouse#) Sales Customer (SalesPerson#, Customer#, Sales-Amount) Warehouse (Warehouse#, Warehouse-Location)
IT Exercise II • Creating, updating, and querying a database for CD On-Line, a new “virtual” store that sells CDs over the Internet • Due Thursday, Feb. 3 • Done with your Team • Submit exercise answers as a report (hardcopy) – one for each team
From an ERD to a Database in Access2000 • Short Demo • Designing tables • Designing relationships • Adding data to tables • More “tips” relating to the use of Access 2000 for IT Exercise #2 will be linked to the exercise web page on the course web site