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.

Slides:



Advertisements
Similar presentations
Microsoft® Access® 2010 Training
Advertisements

Database Design Week 10.
CSCI3170 Introduction to Database Systems
Microsoft SQL Server 2008 From the Program menu choose: Microsoft SQL Server 2008 R2  SQL Server Management Studio. You may see a window indicating the.
Accessing and Using the e-Book Collection from EBSCOhost ® When an arrow appears, click to proceed to the next slide at your own pace. To go back, click.
Database Modeling IT Key Ideas, Dynamic Database Systems, 2002 Chapter 8.
BA271 Week 6 Lecture Database Overview Dave Sullivan.
Microsoft Access 2003 Introduction To Microsoft Access 2003.
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.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
Chapter 1 Databases and Database Objects: An Introduction
Access 2007 ® Use Databases How can Microsoft Access 2007 help you manage a database?
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.
Database Design.  Define a table for each entity  Give the table the same name as the entity  Make the primary key the same as the identifier of the.
Advanced Tables Lesson 9. Objectives Creating a Custom Table When a table template doesn’t suit your needs, you can create a custom table in Design view.
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.
Access 2007 Database Application Managing Business Information Effectively BCIS 1 and 2.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
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 10, Slide 1 CSE 103 Students: Your BTs have been graded. See Erica or Jo with questions or stay.
Using School fusion A great interactive tool to aid in communication for students, parents and YOU!!! Property of TSVest 2006.
Miscellaneous Excel Combining Excel and Access. – Importing, exporting and linking Parsing and manipulating data. 1.
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.
PHP meets MySQL.
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.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
WEEK 11 Database Design. TABLE INSTANCE CHARTS Create Tables.
1 Advanced Topics in Access How to create forms and reports Andrew Yu 03/04/2002.
U:/msu/course/cse/103 Day 07, Slide 1 Day 15 Review What datatype would be an appropriate choice for: –A cell phone number.
Chapter 17 Creating a Database.
U:/msu/course/cse/103 Day 06, Slide 1 CSE students: Do not log in yet. Review Day 6 in your textbook. Think about.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Datafaces Data Base Management Software (DBMS) is a tool used to transform Data into Information. What is Data…? What is Information…? What is a Database…?
Accessing E-DRIVER File for the first time Critical Steps to Assuring Success O nline S afety & C ompliance E lectronic R eporting System.
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.
DAY 15: ACCESS CHAPTER 1 Rahul Kavi October 6,
A337 - Reed Smith1 Structure What is a database? –Table of information Rows are referred to as records Columns are referred to as fields Record identifier.
Intro to Access and Data Management. Announcements Chapter 5 – Thursday Entropy Registration Quiz Due Date Extended to Weds. Dreamspark Registration Questions?
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.
Creating a Database Angelo Lafratta- Website: Search: Keith Valley Physical.
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.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
Data modeling Process. Copyright © CIST 2 Definition What is data modeling? –Identify the real world data that must be stored on the database –Design.
Classwork: Common Errors Primary keys: don’t forget them! Primary keys: choose the best one! – “Name” and “birthday” are not the best choices. – “Phone.
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.
ASSIGNMENT 2 Salim Malakouti. Ticketing Website  User submits tickets  Admins answer tickets or take appropriate actions.
Starting with Oracle SQL Plus. Today in the lab… Connect to SQL Plus – your schema. Set up two tables. Find the tables in the catalog. Insert four rows.
U:/msu/course/cse/103 Day 08, Slide 1 Debrief Homework What problems arose in trying to import the data from Classical_Music.xls?
COMPREHENSIVE Access Tutorial 1 Creating a Database.
ELISTING How to use eListing to conveniently and quickly file your personal property listing online. DEPARTMENT OF ASSESSMENTS King County To navigate.
Decision Analysis Fall Term 2015 Marymount University School of Business Administration Professor Suydam Week 10 Access Basics – Tutorial B; Introduction.
Copyright © 2014 Pearson Canada Inc. Ext. 5b-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5b Using Microsoft Access Part 2: Using Information.
CSE 103 Day 15: Database Design
NAMI 360 – Screenshot Guide 2
Creating and Modifying Queries
CSE Students: Please do not log in yet.
Debrief Homework Import data from the text file CanadianUniversities06.txt into a temporary table. What is the primary key for this table? Construct an.
Advanced Database Concepts: Reports & Views
Grauer and Barber Series Microsoft Access Chapter One
NSVFA Membership Renewal
Presentation transcript:

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 DB (need 15). Sign-up for a makeup before you leave for break! Others: Please save your work and log out by 10:10.

U:/msu/course/cse/103 Day 16, Slide 2 Day 15 Review What datatype would be an appropriate choice for: –A cell phone number –A favorite color –A birthday or anniversary What was the primary key for tbl_People? Why? What did we do about missing data?

U:/msu/course/cse/103 Day 16, Slide 3 Primary Key Exercise Review In the Primary Key Exercise from Day 15, what keys did you set for: –tbl_PlayerHistory –tbl_Games –tbl_Tasks What fields did you create for tbl_EmployeeTaskAssignments? –What was the primary key?

U:/msu/course/cse/103 Day 16, Slide 4 Day 16: Intermediate Design; Updating single-table designs What information in your contacts database is stored poorly? –Many of the records have NULL values –Some records contain the same value Can we group some of this information together somehow? If we move data to another table, how do we relate it back to ? If we move data to another table, how do we relate it back to tbl_People?

U:/msu/course/cse/103 Day 16, Slide 5 Contacts Database The database contacts.mdb currently consists of a single table We now need to accommodate a wide variety of data –Some friends have school, work, personal accounts –Some family members don't have any at all! How should we change the contacts database to best handle this new data? What type of relationship is needed? –Assume that no one shares an address

U:/msu/course/cse/103 Day 16, Slide 6 Four Steps to Redesign the contacts database Design the new tbl_ s table –Fields, Names, Datatypes –We will make the assumption that an address 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 information

U:/msu/course/cse/103 Day 16, Slide 7 First Step Design the new tbl_ s table –Fields, Names, Datatypes –Remember: This table is to describe the “ s” entity, not People Information not related to an address doesn't belong here! –What is an appropriate primary key? –What foreign key(s) might you need to use? When you make a new table, it should (almost always) have a foreign key from at least one other table

U:/msu/course/cse/103 Day 16, Slide 8 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 the results of the previous step!) –Use design view, not a delete query (delete queries remove rows, not columns) Enter any new information in the new table tbl_ s

U:/msu/course/cse/103 Day 16, Slide 9 Redesign debrief What is the primary key in the new tbl_ s table? Is there a foreign key in the tbl_ s table? If so, what one? How was the data transferred? What column(s) needed to be removed? What difficulties were encountered?

U:/msu/course/cse/103 Day 16, Slide 10 Updating database exercise Note the size of your contacts database file now and again after these steps. Update the datatype and length of each field in both tables to what is actually needed in order to accommodate the data Use the Tools menu to compact (called compact & repair in some versions of Access) your contacts database How was the size of your file affected?

U:/msu/course/cse/103 Day 16, Slide 11 More redesigning: Phones Obviously some people have many different phones –Home, Cell, Work, Work Cell, Work Fax, etc. Some phone numbers belong to more than one person –Roommates, families –Fax machines We need a compact way to represent this data without redundancy and without excessive NULL values in fields

U:/msu/course/cse/103 Day 16, Slide 12 Four steps to redesign contacts for phones Make new table(s) as needed –Identify your relationship(s). If you have any M:N relationships, you need an extra table. Transfer the existing data into the new table(s) and CHECK THE RESULTS Delete the redundant info from the original table(s) (AFTER checking) Enter any new data into the new table(s)

U:/msu/course/cse/103 Day 16, Slide 13 Phones redesign, steps 1 and 2 What type of relationship is this? What table or tables do we need? What type of data should go in each table? What is the primary key of each table? How can we copy data into the right places? How do we make sure it gets linked up correctly?

U:/msu/course/cse/103 Day 16, Slide 14 Homework Check the Homework link on today’s Classwork page for homework to do for Day 17 –Transfer addresses like we did phones –Finish redesigns from class (Phones, s)