Debrief Homework Import data from the text file CanadianUniversities06.txt into a temporary table. What is the primary key for this table? Construct an.

Slides:



Advertisements
Similar presentations
Database Relationships in Access As you recall, the data in a database is stored in tables. In a relational database like Access, you can have multiple.
Advertisements

Database Design Week 10.
Computer Concepts 5th Edition Parsons/Oja Page 492 CHAPTER 10 File And Database Concepts Section A PARSONS/OJA Databases.
1 CSE Students: Please do not log in yet. Check-in with Brian in the back. Review Days 3 and 4 in the book. Others: Please save your work and logout.
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.
1 The Information School of the University of Washington Nov 29fit forms © 2006 University of Washington More Forms INFO/CSE 100, Fall 2006 Fluency.
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
LESSON 17 PREPARED BY MANJU. database A database is a collection of related information Access is the Microsoft Office database program that enables you.
The Relational Database Model
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.
U:/msu/course/cse/103 Day 10, Slide 1 Multiple Table Database Review What are entities? What are records ? What are attributes?
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
U:/msu/course/cse/103 Day 04, Slide 1 CSE students: Do not log in yet. Computers are SLOW today! Review days 13.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Access 2003 Lab 3 Analyzing Data and Creating Reports.
Today’s Agenda  Any questions about the assignment (due Mon)?  Quiz  Quiz review  Homework for Friday:  Watch the two videos on the Coursera db website.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 9 1 Microsoft Office Access 2003 Tutorial 9 – Using Action Queries, and Defining Table Relationships.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
WEEK 11 Database Design. TABLE INSTANCE CHARTS Create Tables.
U:/msu/course/cse/103 Day 07, Slide 1 Day 15 Review What datatype would be an appropriate choice for: –A cell phone number.
Organizing Data Revision: pages 8-10, 31 Chapter 3.
U:/msu/course/cse/103 Day 06, Slide 1 CSE students: Do not log in yet. Review Day 6 in your textbook. Think about.
1 CSE 103 Section 002: M/W 10:20am-12:10pm 216 Berkey Hall Section 004: T/R 10:20am-12:10pm 1210 Anthony Hall.
Microsoft Access 2013 ®® Tutorial 9 Using Action Queries and Advanced Table Relationships.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
BA271 Week 6 Lecture Dave Sullivan. Goal for today… Status Report – Review where we are … Status Report – Review where we are … Begin learning about Microsoft.
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.
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.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
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.
Data modeling Process. Copyright © CIST 2 Definition What is data modeling? –Identify the real world data that must be stored on the database –Design.
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.
U:/msu/course/cse/103 Day 08, Slide 1 Debrief Homework What problems arose in trying to import the data from Classical_Music.xls?
Normalization.
Lesson 10 Databases.
Prepared By: Bobby Wan Microsoft Access Prepared By: Bobby Wan
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA
Starter Activity (5 Mins) What am I?
Miscellaneous Excel Combining Excel and Access.
Revised: 2 April 2004 Fred Swartz
You need to be in Design View
CSE 103 Day 15: Database Design
DBM 380 aid Education Begins/dbm380aid.com
Relational Databases.
Objectives Create an action query to create a table
Questions In the PHP script mysqltest.php :
CIS 155 Table Relationship
Databases A brief introduction….
Do it now – PAGE 13 You will find your do it now task in your workbook – look for the start button! Thursday, 20 September 2018.
DBM 380 Competitive Success/snaptutorial.com
DBM 380 Education for Service/snaptutorial.com
DBM 380 Teaching Effectively-- snaptutorial.com
Databases and Information Management
Database Basics An Overview.
Entity Relationships and Normalization
Basic Concepts in Data Management
Database Fundamentals
Insert, Update, Delete Manipulating Data.
Relational Queries (query 12) Display vendor contact info (contact person and phone number) for inventory products (relationship query) Query: Inventory.
Creating Tables & Inserting Values Using SQL
CSE Students: Please do not log in yet.
INFO/CSE 100, Spring 2006 Fluency in Information Technology
Databases and Information Management
G061 - Data Dictionary.
BTEC ICT – Unit 18 With Mr Griffiths.
Tutorial 9 Using Action Queries and Advanced Table Relationships
New Perspectives on Microsoft
Presentation transcript:

Debrief Homework Import data from the text file CanadianUniversities06.txt into a temporary table. What is the primary key for this table? Construct an APPEND query to copy select data from this table into the appropriate fields in table tbl_Schools http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Relational Databases What are entities? How are they stored? What are attributes? How are they stored? What is a 1:N relationship? M:N relationship? 1:1 relationship? What is a foreign key? http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Relationships in the music_Day07 database Copy the music_Day07 database and open it in Access Identify relationships between the tables. How did you find each? Classify each relationship as M:N, 1:N, or 1:1. http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Contacts Database The database contacts.mdb currently consists of a single table. We now need to accommodate a wide variety of phone data. How should we change the contacts database to best handle this new data? What type of relationship is needed? (Assume one phone number is associated with exactly one person.) http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Four Steps to Redesign the contacts database Design the new tbl_Phones table Fields, Names, Datatypes We will make the assumption that a phone number can belong only to one person (without this assumption, we would need several extra steps) Transfer the existing data to the new table and CHECK YOUR RESULTS Delete the unneeded column(s) from the original table (But once they’re gone…) Enter any new phone information http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

First Step Design the new tbl_Phones table Fields, Names, Data types Remember: This table is to describe the “Phones” entity, not People What is an appropriate primary key? What foreign key(s) might you need to use? In a relational database, 99% of the time, when you make a new table, it should have a foreign key from at least one other table http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Next Steps Transfer the existing data to the new table using action queries CHECK THE RESULTS!!! Delete the unneeded column(s) from the tbl_People table (AFTER checking) Enter any new phone information in the new table tbl_Phones http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Redesign debrief What is the primary key in the new tbl_Phones table? Is there a foreign key in the tbl_Phones table? If so, what one? How was the data transferred? What column(s) needed to be removed? What difficulties were encountered? http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Updating database exercise Note the size of your contacts database file now and again after these steps. Update the data type and length of each field in both tables to what is actually needed to accommodate the data. Use HELP to find out how to compact a database. Compact your contacts db. How was the size of your file affected? http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

musicDay07 database In classical music and jazz, many artists perform together on a single album but do not actually form a group. What type of relationship does this imply exists between artists and albums? How does our database musicDay07.mdb accommodate this? How can we change the database to handle this situation? http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Four Steps to Redesign the musicDay07 database Make a new table tbl_PerformsIn Transfer the existing data into the new table and CHECK THE RESULTS Delete the redundant info from the original tables (AFTER checking) Enter any new data into the new table This new data is in the Classical_Music07.xls file in today’s AFS space (see next slide) http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Homework Work on the classical_music07.xls import What problems do you run into? How can you solve these? If you can’t finish, come prepared to discuss your problems on Day 08. Check the link on today’s classwork page for homework to do for Day 08 Transfer addresses like phones Finish redesigns from class (Phones, PerformsIn) http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103