Database Modeling IT Key Ideas, Dynamic Database Systems, 2002 Chapter 8.

Slides:



Advertisements
Similar presentations
Exploring Microsoft Access 2003 Chapter 5 One-to-Many Relationships : Subforms and Multiple Table Queries.
Advertisements

Access Manual 4 By Elham S.Khorasani Ismail Guneydas Dhawala Kovuri.
Microsoft Access.
Data Modeling. What are you keeping track of? You begin to develop a database by deciding what you are going to keep track of. Each thing that you are.
Relationships Relational Database. Identifying Entities… In the previous tutorial you learnt about identifying entities in a flat file database. Also.
AS ICT Building MS-Access Databases. Creating a Combo Box Drop Down List 1.When creating a Field requiring a Drop Down list in a Table, select the Lookup.
MS-Access XP Lesson 2. Input Mask Property 1.Field : Phone No Data Type : Number Input Mask : Character 0 represent a single digit and phone.
Normalisation Ensuring data integrity in database design 1.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
ISP 121 Access Normalization and Relationships. Normalization Say we’re operating a pet day-care and we need to keep information on our pets/customers.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Designing a Database Unleashing the Power of Relational Database Design.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
Define Table Relationships—1 of 3 One of the most powerful features of a relational database management system, such as Access, is its ability to define.
Database Relationships Objective 5.01 Understand database tables used in business.
© Paradigm Publishing, Inc Access 2010 Level 2 Unit 1Advanced Tables, Relationships, Queries, and Forms Chapter 2Building Relationships and Lookup.
Database Applications – Microsoft Access Lesson 2 Modifying a Table and Creating a Form 45 slides in presentation Accessibility check 9/14.
Microsoft Access 2000 Creating Tables and Relationships.
Database Tables two order-entry scenarios: A customer wants to cancel an order that she's placed. If her address is in a separate table from her.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T6: Basic Skills and Tools Using.
® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.
Module III: The Normal Forms. Edgar F. Codd first proposed the process of normalization and what came to be known as the 1st normal form. The database.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 9 1 Microsoft Office Access 2003 Tutorial 9 – Using Action Queries, and Defining Table Relationships.
XP New Perspectives on Microsoft Access 2002 Tutorial 21 Microsoft Access Tutorial 2 – Creating And Maintaining A Database.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Relationships and Advanced Query Concepts Using Multiple Tables Please use speaker notes for additional information!
Databases Week 5 LBSC 690 Information Technology.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T6: Basic Skills and Tools Using Access 2010 Business Driven Technology.
Microsoft Access Intro Class 6 Relationships.
Next Back A-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All rights.
® Microsoft Office 2013 Access Creating a Database.
BUSINESS DRIVEN TECHNOLOGY Plug-In T5 Touring Access.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Creating Related Tables Creating Related Tables Determining.
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
What have we learned?. What is a database? An organized collection of related data.
McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T6 Basic Skills Using Access.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Database Design. The process of developing database structures from user requirements for data a structured methodology Structured Methodology - a number.
Chapter 10 Designing the Files and Databases. SAD/CHAPTER 102 Learning Objectives Discuss the conversion from a logical data model to a physical database.
3. Relational Model Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
Lesson 2: Designing a Database and Creating Tables.
1 CHƯƠNG 4 Creating Relational Databases Understanding Table Relationships Example: This database tracks customers and their orders in two separate.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Work with Tables and Database Records Lesson 3. NAVIGATING AMONG RECORDS Access users who prefer using the keyboard to navigate records can press keys.
NORMALIZATION. What is Normalization  The process of effectively organizing data in a database  Two goals  To eliminate redundant data  Ensure data.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Chapter 1 Introduction to Database. Database Concept Field: a basic data element or attribute of an object Record: a set of fields Table: a set of records.
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
DAY 14: ACCESS CHAPTER 1 RAHUL KAVI October 8,
COMPREHENSIVE Access Tutorial 1 Creating a Database.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Decision Analysis Fall Term 2015 Marymount University School of Business Administration Professor Suydam Week 10 Access Basics – Tutorial B; Introduction.
Revised: 2 April 2004 Fred Swartz
Databases – Exam questions
and Defining Table Relationships
CIS 155 Table Relationship
Grauer and Barber Series Microsoft Access Chapter One
Nagendra Vemulapalli Access chapters 1&2 Nagendra Vemulapalli
Presentation transcript:

Database Modeling IT Key Ideas, Dynamic Database Systems, 2002 Chapter 8

Disk Jockey Appointments IT Key Ideas, Dynamic Database Systems, How is the data ordered? 2.Is any of the data repeated? page 86

IT Key Ideas, Dynamic Database Systems, 2002 page 86 1.How is the data ordered? 2.Is any of the data repeated? 3.How might it be possible to save time and space?

The second, third, fourth and fifth occurrences of the data shown is redundant. IT Key Ideas, Dynamic Database Systems, 2002 page 87

redundant data IT Key Ideas, Dynamic Database Systems, 2002

What does this data belong to or have in common? it is all about?the Function Centres The name is not necessarily straightforward it might be called Locations or …

IT Key Ideas, Dynamic Database Systems, 2002 What does this data belong to or have in common? it is all about? Appointments

1.x IT Key Ideas, Dynamic Database Systems, 2002 A relational database system avoids data redundancy by storing the data that belongs to different entities into separate tables. systems with multiple tables page 87

1.x IT Key Ideas, Dynamic Database Systems, 2002 An entity according to the dictionary means “a thing” or “a being” or a “creature”. The taxation office lists an individual, a partnership, an association, a corporation and a company as examples of entities. Entities IT Key Ideas, Dynamic Database Systems, 2002 page 87

1.x IT Key Ideas, Dynamic Database Systems, 2002 A key field is an element of data in a table that uniquely defines a record. Key fields page 87

which field?

1.x IT Key Ideas, Dynamic Database Systems, 2002 There will often be different fields that could be set as a key field. Such fields are called candidate keys, as they are just that, candidates for the key field. Candidate keys page 87

IT Key Ideas, Dynamic Database Systems, 2002 Functions There are several candidate keys for the entity about the functions. Namely the Name of the location the Address the Phone Number Note: the Suburb is not because two (or more) Function Centres could be in the one suburb

or a new field may be created eg. Location ID Location Code Function Centre ID NB:this is the more likely approach at this level

the first four fields form one entity this data is saved in one table IT Key Ideas, Dynamic Database Systems, 2002

namely Note:The existence of the Function Centre ID field. IT Key Ideas, Dynamic Database Systems, 2002

the other fields form a second entity possibly called, Note: the existence of the Function Centre ID, in order to be able to track where the appointments are. IT Key Ideas, Dynamic Database Systems, 2002 Appointments this data is saved in a second table

Relating the tables page 90

setting a primary key page 90 select Design View for the Function Centres table select the Function Centre ID field click on the primary key button on the Toolbar IT Key Ideas, Dynamic Database Systems, 2002 save the table

relating the tables page 91 select the relationship button on the toolbar IT Key Ideas, Dynamic Database Systems, 2002 add both tables (use the Shift key) and close select the primary key field from the Function Centres table drag and drop this field to its matching field in the Appointments table (its foreign key)

Referential Integrity page 91 Data integrity involves ensuring the data is accurate, reliable, appropriate, correct. IT Key Ideas, Dynamic Database Systems, 2002 Referential integrity involves ensuring that a record in the transaction table does not refer to a source entity that does not exist in the source table. In this case, making sure that an Appointment is not entered for a non-existent Function Centre.

IT Key Ideas, Dynamic Database Systems, 2002 page 97 Exercise 8.2 Data type, size, defaults, validation

IT Key Ideas, Dynamic Database Systems, 2002 Data type, size, defaults, validation

IT Key Ideas, Dynamic Database Systems, 2002 page 98Practical 8.3Cleaners

IT Key Ideas, Dynamic Database Systems, 2002 Cleaners Data Dictionaries

IT Key Ideas, Dynamic Database Systems, 2002 page 101Exercise 8.4Private Detective page 102Exercise 8.5City Tours page 103Exercise 8.6Video Store page 104Exercise 8.7Chauffeur Service

Chapter 8 ******************************** IT Key Ideas, Dynamic Database Systems, 2002