U:/msu/course/cse/103 Day 18, Slide 1 CSE 103 Day 18 If you are not enrolled in CSE 103, please save and log out by 10:10.

Slides:



Advertisements
Similar presentations
Access Manual 4 By Elham S.Khorasani Ismail Guneydas Dhawala Kovuri.
Advertisements

Microsoft Access.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module J (Office 2010 Version) Implementing.
Database Creation and Management
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.
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.
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.
U:/msu/course/cse/103 Day 16, Slide 1 CSE 103 Day 16 Students: Read Day 10. If you are logged in, add records to your contacts.
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
U:/msu/course/cse/103 Day 23, Slide 1 Review of Day 22 What query did you use to search for an actor by name? –Return matches.
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
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.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
Chapter 3 Maintaining a Database
U:/msu/course/cse/103 Day 25, Slide 1 Back-up PHP Files If you have not yet passed the 3.0 BT, make back-up copies of ALL.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
Microsoft Access Lesson 3
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
1 Microsoft Access 2002 Tutorial 3 – Querying a Database.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Access Tutorial 2 Building a Database and Defining Table Relationships
U:/msu/course/cse/103 Day 10, Slide 1 Multiple Table Database Review What are entities? What are records ? What are attributes?
U:/msu/course/cse/103 Day 04, Slide 1 CSE students: Do not log in yet. Computers are SLOW today! Review days 13.
® 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.
® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.
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 Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Databases Week 5 LBSC 690 Information Technology.
U:/msu/course/cse/103 Day 07, Slide 1 Day 15 Review What datatype would be an appropriate choice for: –A cell phone number.
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
U:/msu/course/cse/103 Day 06, Slide 1 CSE students: Do not log in yet. Review Day 6 in your textbook. Think about.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
Microsoft Access Intro Class 6 Relationships.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 8 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 8 Creating.
Day 13, Slide 1 U:/msu/course/cse/103 CSE 103 Students: Review INNER and OUTER JOINs, Subqueries. Others: Please save your.
© 2002 by Prentice Hall 1 Database Processing with Microsoft Access David M. Kroenke Database Concepts 1e Appendix A.
Microsoft Access 2013 Design and Implement Powerful Relational Databases Chapter 6.
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.
1 Database Systems Introduction to Microsoft Access Part 2.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES Modify a Table – Add, Delete, Move Fields Modify a Table.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
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 Processing with Microsoft Access Appendix DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
U:/msu/course/cse/103 Day 03, Slide 1 CSE 103 Day 15: Database Design Students: –Read Day 2 in your textbook –Your BT feedback.
Exploring Office Grauer and Barber 1 One-to-Many Relationships: Subforms and Multiple-Table Queries(Wk7)
U:/msu/course/cse/103 Day 17, Slide 1 CSE 103 Housekeeping: –Take a makeup BT this week if not passed the 2.0 yet –Next.
U:/msu/course/cse/103 Day 08, Slide 1 CSE 103 Students: –Review days 7 and 8 if you need to go over relationships and INNER.
HOMEWORK # 4 OVERVIEW Aliya Farheen Oct
U:/msu/course/cse/103 Day 12, Slide 1 CSE 103 Students: Read Day 18 and learn about subqueries Others: Please save your.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
U:/msu/course/cse/103 Day 08, Slide 1 Debrief Homework What problems arose in trying to import the data from Classical_Music.xls?
DAY 14: ACCESS CHAPTER 1 RAHUL KAVI October 8,
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
Copyright © 2014 Pearson Canada Inc. Ext. 5b-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5b Using Microsoft Access Part 2: Using Information.
Access Tutorial 2 Building a Database and Defining Table Relationships
New Perspectives on Microsoft Access 2016
CSE 103 Day 15: Database Design
and Defining Table Relationships
Relational Queries (query 12) Display vendor contact info (contact person and phone number) for inventory products (relationship query) Query: Inventory.
Access Tutorial 2 Building a Database and Defining Table Relationships
Debrief Homework Import data from the text file CanadianUniversities06.txt into a temporary table. What is the primary key for this table? Construct an.
Access Tutorial 2 Building a Database and Defining Table Relationships
Presentation transcript:

U:/msu/course/cse/103 Day 18, Slide 1 CSE 103 Day 18 If you are not enrolled in CSE 103, please save and log out by 10:10. Students: –Finish MegaCorp import (if logged in)! –Today: Last day of Access! –Review Day 12 in the textbook

U:/msu/course/cse/103 Day 18, Slide 2 Review of Day 17 Homework Queries Create a list of suite descriptions with the accompanying product descriptions, quantities and number in stock. (qry_hw11_suiteMakeup) [42] Modify this query to also list the color name of each product and to order the list by suite. (qry_hw11_suite&color) [still 42!]

U:/msu/course/cse/103 Day 18, Slide 3 Redundancy and Consistency See pages 1-17 and 1-18, as well as pages 12-2 and –What is Data Redundancy? How can it be controlled? –What is Data Consistency? How can it be assured? –What is Entity Integrity? How can it be enforced in Access? –What is Referential Integrity?

U:/msu/course/cse/103 Day 18, Slide 4 Referential Integrity in Access In MegaCorp, choose Tools -> Relationships Right-click, Show Table: Products and Colors Create a relationship like you would a join: by dragging a line to connect fields –One should be the primary key of a table! Access asks if you want to enforce integrity, and if you want to use Cascade Update/Delete –Cascade Update: When a primary key changes, copy the new value to the related foreign key –Cascade Delete: When a record with a primary key value is deleted, also delete all records having that value in a related foreign key field

U:/msu/course/cse/103 Day 18, Slide 5 MegaCorp Relationships Use the relationship window to create relationships between tables in the MegaCorp database –When would you want Cascade Update or Cascade Delete? –When would you not? Field names do not have to match to make a relationship, but datatypes must match –Autonumber matches with Number (not Auto)

U:/msu/course/cse/103 Day 18, Slide 6 Problems in music-day08 db These questions are "what if" only. Some of these could damage your database, so do not actually change your data! What would happen if you were to change MP3 to MP4 in the DigitalFormat field of the DigitalTracks table? Why? What would happen if you were to delete the Elektra/Asylum row from the Labels table? Why?

U:/msu/course/cse/103 Day 18, Slide 7 Relationships in music-day08 Create relationships and try to enforce referential integrity in your music-day08 database –Don't create one for Secondary Artist What problems do you run into? –Read any error messages carefully, then investigate the table or tables that have the problem. How could we solve this?

U:/msu/course/cse/103 Day 18, Slide 8 Lookup Fields Have we solved the problem illustrated by: –What would happen if you were to change MP3 to MP4 in the DigitalFormat field of the DigitalTracks table? Lookup Fields can restrict field values (See Access 2000 HELP on how to define and use) –Makes data entry in Datasheet view much easier Fix the problem in the Labels and Albums tables, then change the Label field in tbl_Albums into a Lookup Field

U:/msu/course/cse/103 Day 18, Slide 9 contacts DB Relationships Define relationships in your contacts db Enforce referential integrity in these relationships Add a table tbl_PhoneTypes to restrict the possible types of phones Allow only these types in the related field in tbl_PhoneNumbers –Could you write a quick query to find all the different PhoneTypes from that field?

U:/msu/course/cse/103 Day 18, Slide 10 Homework Click on the Homework link on today’s classwork page to find out what must be done before taking the 2.5 BT Highlights: –Add and use tbl_AddressTypes in contacts db –Add more lookup fields in MegaCorp db –Queries on tables with lookup fields –After the BT we will begin working on dynamic Web pages. Review basic HTML from CSE 101, Days 6-7 (use the101 Web site).

U:/msu/course/cse/103 Day 18, Slide 11 Bridge Task 2.5 Covers all materials from Day 15 through and including Day 18 –Design, design, and more design Datatypes and primary keys Adding a new table or tables to an existing database Designing a multiple-table database Relationships and referential integrity Lookup fields Review text, Web and homework Bring books, notes, back-up disk, photo ID, etc. Practice BT is available –Answer to design problem will be in course AFS space

U:/msu/course/cse/103 Day 18, Slide 12 Homework you must have done before the BT 2.5 Contacts: –15 records in tbl_People –Phones and Addresses N:M relationships (2 tables each + “Types” table makes 3) – 1:N relationship (1 table) –Referential Integrity enforced on all relationships MegaCorp: –All data imported –Referential Integrity enforced –Lookup fields