Database Beginnings. Scenario so far In our scenario we have people registering for training sessions. –The data about the training sessions was placed.

Slides:



Advertisements
Similar presentations
WHAT D IS RAW, UNPROCESSED FACTS AND FIGURES COLLECTED, STORED AND PROCESSED BY COMPUTERS.
Advertisements

Concepts of Database Management Seventh Edition
Concepts of Database Management Sixth Edition
WELL-DESIGNED DATABASES Process faster Easy to develop and maintain Easy to read and write code.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
Case study Lisa’s Bookstore IST210.
Database Software Application
MS Access 2007 IT User Services - University of Delaware.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
Copyright © 2016 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.
Database Design Concepts
Concepts of Database Management, Fifth Edition
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Relational databases and third normal form As always click on speaker notes under view when executing to get more information!
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
CHAPTER EIGHT Accessing Data Processing Databases.
CSC 240 (Blum)1 Introduction to Database. CSC 240 (Blum)2 Data versus Information When people distinguish between data and information, –Data is simply.
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 4 This material was developed by Oregon Health & Science.
CHAPTER EIGHT Accessing Data Processing Databases.
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 4: Restaurant.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Intro to MySQL 1. Open a browser and enter the following address: It should lead to a log in screen. If your name is.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
Microsoft Access 2010 Crash Course Part 1 Academic Health Center Training (352)
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support.
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Database Management Systems MIT Lesson 02 – Database Design (Entity Relationship Diagram) By S. Sabraz Nawaz.
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
ENTITY RELATIONSHIP DIAGRAM ENTITY RELATIONSHIP DIAGRAM IS A SPECIALIZED GRAPHIC THAT ILLUSTRATES THE INTERRELATIONSHIPS BETWEEN ENTITIES IN A DATABASE.
Database Fundamentals CSC105 Furman University Peggy Batchelor.
Component 4/Unit 6d Topic IV: Design a simple relational database using data modeling and normalization Description and Information Gathering Data Model.
GIS Data Models GEOG 370 Christine Erlien, Instructor.
CSC 240 (Blum)1 Introduction to Access CSC 240 (Blum)2 Click on the Access desktop icon or go to Start/Programs/Microsoft Office/Microsoft Office.
Quiz questions. 1 A data structure that is made up of fields and records? Table.
Lesson 2: Designing a Database and Creating Tables.
Chapter 56 Relational Database Design Compiled by Eddie Moorcroft.
CSC 240 (Blum)1 Introduction to Access CSC 240 (Blum)2 Click on the Access desktop icon or go to Start/All Programs/Microsoft Office/Microsoft Office.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
1 2 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 2 The Relational Model 1: Introduction, QBE, and Relational Algebra.
Link tables and keys Access/IPS Walsall College of Arts & Technology.
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 1: Introduction to IS2803 Rob Gleasure
Sample Table Standard Notation Entity name in uppercase
6.1 © 2007 by Prentice Hall Chapter 6 (Laudon & Laudon) Foundations of Business Intelligence: Databases and Information Management.
Howard Paul. Sequential Access Index Files and Data File Random Access.
Microsoft Access 2010 Chapter 11 Database Design.
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
DATA MODELING AND ENTITY-RELATIONSHIP MODEL II IST 210: Organization of Data IST210 1.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
COP Introduction to Database Structures
Databases Chapter 16.
CIS 155 Table Relationship
PHP and MySQL.
Microsoft Access Date.
Information system analysis and design
Presentation transcript:

Database Beginnings

Scenario so far In our scenario we have people registering for training sessions. –The data about the training sessions was placed in an XML file. –When users registered, a confirmation message was displayed and sent through . –Not shown, but a simple extension, would be for some training administrator to be ed as well, and a list of participants compiled.

Two lists to one database We would like to move from these two lists (training sessions and registrants for training) to one database. You can ask questions of a database like –How many people have had the Blackboard Intro but not the Blackboard Intermediate? –How many computers are there in Olney 200? And whom do I contact to reserve it? –Etc.

Entity-Relationship Modeling Entities are the main things about which you are collecting data. –E.g. people, subjects, training sessions, locations, etc. Relationships are the connections between the entities –E.g. people attend a training session, a training session covers a subject, a training session is at a location, etc.

Normalization In normalization you start by looking at some existing data (or some anticipated data) output, such as our list of training sessions. The main concept behind normalization is to minimize data entry and data updating.

XML data for training Note how the title and description of “Blackboard Introduction” is repeated. Normalization says to separate them off. Note how the location Olney 127 is repeated. Normalization suggests that might get separated out – especially if we include additional information about location.

Separate into what? In ER modeling, the entities and certain types of relationships end up represented by “tables”. –Tables look like that XML Data Grid Normalization also leads one to a decision on how the tables should be organized. ER Modeling and Normalization should lead one to the same end point – a set of tables with connections to one another with a minimum of repeated data – a database.

Table? A table can be seen as the Data Grid seen earlier. –It has rows corresponding to different “records” –The columns correspond to different fields or properties of a record –Each row/record should be unique –The order of rows does not matter –The order of the columns does not matter

Connected how? Special columns/fields called keys play a special role of establishing the connection/relationship between records in different tables. For example, a Location record might have a code O127 (a primary key) to identify it, and a TrainingSession record may have a location value O127 (a foreign key) to indicate its relationship to (that it will be held in) the location corresponding to O127.

List Entities and Attributes A Person has –A username (can be primary key?) –A first name –A last name –A phone number –An address –Etc.

List Entities and Attributes (Cont.) A Location has –A code to use as primary key –A name –A number of seats –A contact person –Etc.

List Entities and Attributes (Cont.) A TrainingSubjectMatter has –A code to use as primary key –A name –A description –A level? –Etc.

List Entities and Attributes (Cont.) A TrainingSession has –A code to use as primary key –A subject (relates to TrainingSubjectMatter) –A location (relates to Location) –A date –A time –Etc. Some might see this as an entity, some might see it as a relationship, either way it is a table

Relationships That a TrainingSession had a location is easy to handle because a TrainingSession has a single location. The relationship is established by using the Location’s id (primary key) as a property of a TrainingSession. But what about the relationship that a TrainingSession has attendees? Such a relationship is said to be many-to-many –A session has many people attending –A person may attend many sessions

Many-to-many means separate table You can’t make session a property of a Person, he or she may attend many sessions. You can’t make person a property of a Session, many people will attend a session. You make a PersonAttendsSession table –It has a foreign key to indicate the Person –It has a foreign key to indicate the Session