Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Database Fundamentals Data.

Slides:



Advertisements
Similar presentations
The Relational Model J.G. Zheng May 15 th Introduction Edgar F. Codd, 1970 One sentence to explain relational database model: Data are organized.
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.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals Create Student-Team.
Chapter 3 Data Modeling Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
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 SQL Fundamentals Evaluating.
THE RELATIONAL DATABASE MODEL & THE DATABASE DEVELOPMENT PROCESS Fact of the Week: According to a Gartner study in ‘06, Microsoft SQL server had the highest.
ISMT221 Information Systems Analysis and Design Entity-Relationship Diagram Lab 4 Tony Tam.
Agenda for Week 1/31 & 2/2 Learn about database design
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Advanced SQL Greenhouse Database.
Database Design Concepts Info1408
Database – Part 2a Dr. V.T. Raja Oregon State University.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Advanced SQL Type II (Correlated)
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
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.
Class Agenda – 04/04/2006 Discuss database modeling issues
INF1050- Databases In this module you will use Microsoft Access to create digital databases.
Database Design Concepts
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
Data-mining & Data As we used Excel that has capability to analyze data to find important information, the data-mining helps us to extract information.
MAIL MERGING IN MICROSOFT PUBLISHER CREATING LABELS AND DOCUMENTS FOR MULTIPLE PEOPLE AT ONCE.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Database Fundamentals Test.
SQL Structured Query Language Programming Course.
Relational Databases (MS Access)
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.
1.  An introduction to data modelling  The purpose of data modelling  Modelling data relationships 2.
IS 475/675 - Introduction to Database Design
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals SELECT … FROM.
MS Access. Access is a DBMS/RDMS DBMS = Database Management System RDMS = Relational Database Management System.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Database Fundamentals Physical.
1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals Sorting output.
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.
The Relational Model for Database Management Systems CIS 205, Fall 2004 Last edited September 17, 2004 By C. Herbert ©2004, all rights reserved.
Quiz questions. 1 A data structure that is made up of fields and records? Table.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Advanced SQL Equi-Join One-sided.
Database Design – Lecture 6 Moving to a Logical Model.
Database Basics BCIS 3680 Enterprise Programming.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals Set Operators:
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Classwork: Common Errors Primary keys: don’t forget them! Primary keys: choose the best one! – “Name” and “birthday” are not the best choices. – “Phone.
* 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.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Connecting (relating) Data Tables to get Custom Records (Queries) Database Basics.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals WHERE clause.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
Howard Paul. Sequential Access Index Files and Data File Random Access.
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Advanced SQL The relational.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 2: MODELING DATA.
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.
For more course tutorials visit CIS 336 All iLabs Week 1 to Week 7 Devry University CIS 336: All iLabs Week 1 to Week 7: Devry University.
Order Database – ER Diagram
ERD’s REVIEW DBS201.
Database Fundamentals
Presentation transcript:

Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Database Fundamentals Data Model: Physical Design – Part 1 Logical & Physical Model 1 Microsoft Enterprise Consortium

Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium What you should know … The presentation assumes you already know relational data model terminology—entity, relationship, unary, etc. These terms are explained in other presentations. 2

Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Logical & physical models A data model can be documentation of how an existing database is constructed or it can be the tool for designing a new database. Depending on the level of abstraction or the level of detail, we may classify a data model as logical or physical. A logical data model is a general depiction of the data—entities and relationships. A physical data model shows enough detail to depict how the database is built. 3

Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Examples: Logical & physical models The examples shown here are for an auto repair shop. The logical model is on the top. ◦It shows entities and relationships. ◦It might also show some attributes. The physical model, as you can see here, shows a great deal more detail. ◦In future presentations we’ll find out what ‘PK’ and ‘FK’ represent and why some attributes are in bold text. ◦The physical model shown here was created in Microsoft Visio. 4

Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Physical model -> relational database When we go from the model to the database, the terminology changes. Entity … becomes … table Attribute … becomes … column or field Entity instance … becomes … a row in a table (also called a record). Relationship … becomes … a column (or columns) that is in each table at both ends of the relationship. 5

Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium From model to database – An example CUSTOMER and REPAIR ORDER entities in the data model will become CUSTOMERS and REPAIR ORDERS tables in the database. (It’s not necessary but it is customary to use singular terms in the model then make these plural in the database.) 6

Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Entity instance = row in a table One of the principles of relational databases is that each row in a table is unique. Primary key: A field (or combination of fields) that uniquely identify one row in the table. ◦Remember the identifier in the data model? That was one or more attributes used to uniquely identify an entity instance. The identifier in the model becomes the primary key in the database. Many attributes or fields are not unique. For example, names, addresses, and phone numbers may not be unique for each customer, employee, or student. So, we often create an identifier or primary key field to uniquely identify each instance of an entity—each row in a table. 7

Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium What you’ve learned … This presentation explained the difference between the logical and physical data model. Terms change when you talk about the data model versus the database built from the data model. A primary key is used to uniquely identify each record in a database table. 8

Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Resources Microsoft Enterprise Consortium: Microsoft Faculty Connection—Faculty Resource Center 9