Database Fundamentals

Slides:



Advertisements
Similar presentations
Database Design J.G. Zheng May 19 th Overview Entity Relationship Modeling Data modeling using Entity Relationship Diagram (ERD) Transforming.
Advertisements

Database Fundamentals
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Database Fundamentals Physical.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals Self-joins,
Microsoft Enterprise Consortium Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Database Fundamentals Defining.
The Hierarchical Model
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals Create Student-Team.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals Aggregate.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Database Fundamentals The Data.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Database Fundamentals Data.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals Evaluating.
Modeling the Data: Conceptual and Logical Data Modeling
Modeling Data The Entity Relationship Model (ER) For Database Design.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Advanced SQL Greenhouse Database.
Data Modeling Introduction. Learning Objectives Define key data modeling terms –Entity type –Attribute –Multivalued attribute –Relationship –Degree –Cardinality.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Advanced SQL Type II (Correlated)
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals Introduction.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals Using two.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals SQL Server.
1 © Prentice Hall, 2002 CMIS564: E/R Modeling Dr. Bordoloi Based on Chapter 3; Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
Normalization Rules for Database Tables Northern Arizona University College of Business Administration.
Chapter 4 The Relational Model.
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
Database R.Fröhlich, M. Schaffer, J. Konicek Database Relationship Types Different Relationship Types in a Logical Relational Model.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Database Fundamentals Test.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals SELECT … FROM.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Advanced SQL Nested aggregate.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals Aggregating.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall, modified by Dr. Lyn Mathis 5-1 David M. Kroenke’s, 10 th ed. Chapter.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals SELECT … FROM.
Database Design – Lecture 5 Conceptual Data Modeling – adding attributes.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Database Fundamentals Physical.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals Sorting output.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals Logical operators.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Advanced SQL In-Line Subquery.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Advanced SQL Equi-Join One-sided.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals Set Operators:
Logical Database Design and the Relational Model.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals WHERE clause.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Advanced SQL The relational.
What Is Normalization  In relational database design, the process of organizing data to minimize redundancy  Usually involves dividing a database into.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Database Fundamentals Data.
Databases A database is a collection of data. How that data is organized determines what type of database it is. Over the history of computers there have.
Chapter 4 Logical Database Design and the Relational Model
Chapter 4: Logical Database Design and the Relational Model
Chapter 4: Part B Logical Database Design and the Relational Model
SEEM3430: Information Systems Analysis and Design
The Relational Model Chapter Two DATABASE CONCEPTS, 3rd Edition
Chapter 5: Logical Database Design and the Relational Model
Relational Databases.
Database Design – Lecture 4
Microsoft Enterprise Consortium Type I Subquery
Order Database – ER Diagram
الفصل الخامس قواعد البيانات Databases
Database Systems: Design, Implementation, and Management Tenth Edition
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Database Processing: David M. Kroenke’s Chapter Six:
Database Modeling using Entity Relationship Model (E-R Model)
Review of Week 1 Database DBMS File systems vs. database systems
logical design for relational database
Chapter 4 Entity Relationship (ER) Modeling
Entity-Relationship Diagram (ERD)
E.R. Examples.
G061 - Data Dictionary.
Chapter # 4 Entity Relationship (ER) Modeling.
Presentation transcript:

Database Fundamentals Microsoft Enterprise Consortium Microsoft Enterprise Consortium Database Fundamentals Physical Design - Part 5 Multivalued Attribute J Kreie, New Mexico State University

Microsoft Enterprise Consortium What you should know … This presentation is the last in a set about “physical design”. At this point, you should know how to implement the relationships listed below when you build a relational database. Binary, one-to-many Unary, one-to-many Binary, one-to-one Binary or unary, many-to-many The steps for actually building tables is shown in other presentations that follow this Database Fundamentals presentation series. J Kreie, New Mexico State University

Multivalued attribute Microsoft Enterprise Consortium Multivalued attribute The entity shown here has a multivalued attribute. Which attribute is it? Emp_phone A multivalued attribute can have more than one value for a single entity instance. In this example, Emp_phone is multivalued because it is possible for each employee to have more than one phone number that we need to keep in the database. EMPLOYEE Emp_ID Emp_First_Name Emp_Last_Name {Emp_Phone} J Kreie, New Mexico State University

Concatenated primary key Microsoft Enterprise Consortium Concatenated primary key The entity on the left depicts a multivalued attribute. The physical data model shown on the right illustrates how a multivalued attribute is transformed. The primary key from the parent entity usually becomes part of the primary key in the child entity (Emp_ID in EMPLOYEE, in this case). Remember, a primary key can consist of more than one field. A concatenated primary key consists of two or more fields. EMPLOYEE Emp_ID Emp_First_Name Emp_Last_Name {Emp_Phone} J Kreie, New Mexico State University

Multivalued attribute implementation Microsoft Enterprise Consortium Multivalued attribute implementation The examples below illustrate the transformation from a logical entity to a physical design to the tables in the relational database. EMPLOYEE Emp_ID Emp_First_Name Emp_Last_Name {Emp_Phone} J Kreie, New Mexico State University

Microsoft Enterprise Consortium What was covered here … We’ve seen how to implement a multivalued attribute when we move from the logical data model to the physical data model and then to the database. The concept of parent and child entities was presented. An example was given for a concatenated primary key. J Kreie, New Mexico State University

Microsoft Enterprise Consortium Resources Microsoft Enterprise Consortium: http://enterprise.waltoncollege.uark.edu/mec.asp Microsoft Faculty Connection—Faculty Resource Center http://www.facultyresourcecenter.com/ J Kreie, New Mexico State University