U:/msu/course/cse/103 Day 10, Slide 1 Multiple Table Database Review What are entities? What are records ? What are attributes?

Slides:



Advertisements
Similar presentations
Information Systems Today: Managing in the Digital World
Advertisements

McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module J (Office 2010 Version) Implementing.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module J (Office 2010 Version) Implementing.
INFO 425 Week 31 INFO 425 Design Problem I Week 3 – SDS Improvements Glenn Booker.
Chapter 5 Sales and Collections Business Process
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
L ECTURE 11 – D ATA M ODELLING Data Dictionaries Entity Relationship Diagram for Data Modelling Steps to Construct Entity Relationship Diagrams Validation.
8 June Single table database in normal form Fields and records Normal form 1.Header in the first line 2.Same content for every field 3.Each record.
Concepts of Database Management Sixth Edition
1 Class Agenda – 09/20/2011  Answer questions about exam  Evaluate database design homework  Review database design homework for syntax and logic 
Database Design (Data Modeling) DCO11310 Database Systems and Design By Rose Chang.
From Class Diagrams to Databases. So far we have considered “objects” Objects have attributes Objects have operations Attributes are the things you record.
Entity-Relationship Model and Diagrams (continued)
3-1 Chapter 3 Data and Knowledge Management
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.
WELL-DESIGNED DATABASES Process faster Easy to develop and maintain Easy to read and write code.
FIS 431/631 Financial Information Systems: Analysis and Design ERD & Normalization Joe Callaghan Oakland University Department of Accounting & Finance.
Attribute databases. GIS Definition Diagram Output Query Results.
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA.
Database Relationships Objective 5.01 Understand database tables used in business.
LOGO Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA King Saud University Noura Al.Madi 1.
© Paradigm Publishing, Inc Access 2010 Level 2 Unit 1Advanced Tables, Relationships, Queries, and Forms Chapter 2Building Relationships and Lookup.
What is a database? An organized collection of data. This can be in an electronic, paper, or other format. Types of databases Operational -constantly changing.
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.
Database Design Concepts
U:/msu/course/cse/103 Day 04, Slide 1 CSE students: Do not log in yet. Computers are SLOW today! Review days 13.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
PLUG IT IN 3 Fundamentals of Relational Database Operations.
Lecturer: Gareth Jones. How does a relational database organise data? What are the principles of a database management system? What are the principal.
U:/msu/course/cse/103 Day 07, Slide 1 Day 15 Review What datatype would be an appropriate choice for: –A cell phone number.
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 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Slide content original, slide layout from Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Entity-Relationship Model Chapter 2.
Implementing an REA Model in a Relational Database
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Database Fundamentals Physical.
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
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 revision.
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
ENTITY RELATIONSHIP DIAGRAM ENTITY RELATIONSHIP DIAGRAM IS A SPECIALIZED GRAPHIC THAT ILLUSTRATES THE INTERRELATIONSHIPS BETWEEN ENTITIES IN A DATABASE.
Relational Theory and Design
Chapter 7 Conversion Business Process
Access Forms 1. Forms Provide an easy way to Enter data Modify data View data 2.
Creating Databases Data normalization. Integrity and Robustness. Work session. Homework: Prepare short presentation on enhancement projects. Continue working.
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.
Lesson 2: Designing a Database and Creating Tables.
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.
Information Systems Today: Managing in the Digital World TB3-1 3 Technology Briefing Database Management “Modern organizations are said to be drowning.
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.
Entity-Relationship Diagram Presentation Gianna-lee Williams 6AQ Ms. Anderson.
Database Design Process For many businesses, the database is the most important set of computer files they have. For some, like EBay or Facebook, the database.
* 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.
Database Design Slide 1 Database Design Lecture 7 part 2 Mapping ERD to Tables.
U:/msu/course/cse/103 Day 08, Slide 1 Debrief Homework What problems arose in trying to import the data from Classical_Music.xls?
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.
MS Access. Most A2 projects use MS Access Has sufficient depth to support a significant project. Relational Databases. Fairly easy to develop a good user.
Lecture 5 Data Model Design Jeffery S. Horsburgh Hydroinformatics Fall 2012 This work was funded by National Science Foundation Grant EPS
DATA SCIENCE MIS0855 | Spring 2016 Designing Data
Database Design Chapters 17 and 18.
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA
Revised: 2 April 2004 Fred Swartz
CSE 103 Day 15: Database Design
Information Systems Today: Managing in the Digital World
Entity Relationships and Normalization
Order Database – ER Diagram
COMP 208/214/215/216 – Lecture 7 Documenting Design.
Debrief Homework Import data from the text file CanadianUniversities06.txt into a temporary table. What is the primary key for this table? Construct an.
ITEM #17 Gray Table 39L x 39W x 29H 3 Folding 3 Non Folding.
Presentation transcript:

U:/msu/course/cse/103 Day 10, Slide 1 Multiple Table Database Review What are entities? What are records ? What are attributes? How can you represent a 1:N (one-to- many) relationship? How can you represent an M:N (many-to- many) relationship?

U:/msu/course/cse/103 Day 10, Slide 2 MegaCorp Database Design a new database for inventory usage MegaCorp manufactures office furniture: –Bookcases, File Cabinets, Desks, Chairs Desks and Chairs come in three styles: –Contemporary, Traditional, Classic All furniture items have: –Color: beige, oak, walnut, mahogany, black –Size: depth, width, height (in inches, to hundredths) –Description, Item Number It is necessary also to keep a record of the number of each item in stock

U:/msu/course/cse/103 Day 10, Slide 3 Database Design Level 1 What questions do I want the database to answer? What data do I need to answer these questions? How are these data related to one another?

U:/msu/course/cse/103 Day 10, Slide 4 Database Design Level 2 What entities are involved? What attributes belong to each entity? What datatype should be used for each of the different attributes? What relationships exist between these entities? What type is each of these relationships?

U:/msu/course/cse/103 Day 10, Slide 5 Database Design Sequence Use a “Relational Database Diagram” with boxes and connecting lines to initially identify entities, attributes and relationships. Next convert boxes to tables and attributes to columns. Define primary keys. Implement each one-to-many relationship via the use of a foreign key in the “many” entity. Implement each many-to-many relationship via an extra “relationship table” which uses the pair of foreign keys as its primary key.

U:/msu/course/cse/103 Day 10, Slide 6 General Design Guidelines Database designing should be an iterative process. As difficulties appear at one stage, you may need to go back and refine or modify earlier stages. Try to reduce redundancies and dependencies (normalization). Finish the design before entering data!

U:/msu/course/cse/103 Day 10, Slide 7 Begin design Work with your groups. See slide 2 for specs. –Create a Relational Database Diagram (slide 5) and write out your tables on paper –Elect group spokesperson to share design with rest of class, we’ll compare notes and come to agreement 10 minutes to work without our help 15 more minutes after that No need to put anything in Access yet (but you can if you finish the rest, just be prepared to change if needed)

U:/msu/course/cse/103 Day 10, Slide 8 MegaCorp Packages MegaCorp wants to sell suites/groupings of furniture items. Each suite consists of a variety of items in different quantities and has a suite name and a total price. Modify your design to handle “suites”. –Work on paper first, only go to Access if your group has reached agreement (again, be prepared to change) –10 minutes without help, then 10 more

U:/msu/course/cse/103 Day 10, Slide 9 Homework Check the link on today’s classwork page for the homework for next class day. Highlights (check web page for full details) –Finish/check Megacorp DB design –Import data into Megacorp