Artificial, Composite and Secondary UIDs

Slides:



Advertisements
Similar presentations
Database Design Lessons 2 & 3 Database Models, Entities, Relationships.
Advertisements

Data Design The futureERD - CardinalityCODINGRelationshipsDefinition.
The Relational Database Model – some relations you might want to avoid!!!
 To provide you with an overview of the aspects that make up a relational database.  This includes: › Tables › Records › Fields › Data types › Keys.
System Analysis - Data Modeling
Systems Analysis Requirements structuring Process Modeling Logic Modeling Data Modeling  Represents the contents and structure of the DFD’s data flows.
From Class Diagrams to Databases. So far we have considered “objects” Objects have attributes Objects have operations Attributes are the things you record.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
The Relational Database Model. 2 Objectives How relational database model takes a logical view of data Understand how the relational model’s basic components.
Concepts of Database Management Seventh Edition
Lecture 9 Handling Many to Many Relationships INFO 1408 Database Design Concepts.
Keys Chapter 8 Database Design for Mere Mortals. Why Keys Are Important They ensure that each record in a table can be properly identified. They help.
Database Design Concepts Info1408
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Lecture 9 Handling Many to Many Relationships INFO 1408 Database Design Concepts.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Data Modeling 1 Yong Choi School of Business CSUB.
Yong Choi School of Business CSUB
Oracle Academy -Week 1-.
The Relational Database Model
DATA MODELING AND DATABASE DESIGN DATA MODELING AND DATABASE DESIGN Part 1.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
CSC271 Database Systems Lecture # 6. Summary: Previous Lecture  Relational model terminology  Mathematical relations  Database relations  Properties.
Database Design Concepts
Database Design Sections 4 & 5 Subtype, Supertype, Mutually exclusive, non-transferability, transferable, 1:1, 1:M, M:M, Redundant, Intersection entity,
DATABASE. A database is collection of information that is organized so that it can easily be accessed, managed and updated. It is also the collection.
Database Design Sections 6 & 7 Second Normal Form (2NF), Unique Identifiers (UID), Third Normal Form (3NF), Arcs, Hierarchies and Recursive relationships.
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 6 Structuring.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
G057 - Lecture 02 Introduction To Database System Concepts Mr C Johnston ICT Teacher
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
CS370 Spring 2007 CS 370 Database Systems Lecture 4 Introduction to Database Design.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
System Design System Design - Mr. Ahmad Al-Ghoul System Analysis and Design.
Handling Many to Many Relationships. 2 Handling Many:Many Relationships Aims: To explain why M:M relationships cannot be implemented in relational database.
Database Design Sections 11 Database relationship, Integrity, keys, mapping conceptual model to logical/physical model Previous Section 12 – DDLesson11Fa12.ppt.
Database Management Systems MIT Lesson 02 – Database Design (Entity Relationship Diagram) By S. Sabraz Nawaz.
Description and exemplification of entity-relationship modelling.
Database Design Sections 11 & 12 drawing conventions, generic model, integrity, keys, mapping conceptual model to logical/physical model.
Generic Modeling. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Define generic modeling –Evaluate and describe.
Databases Illuminated Chapter 3 The Entity Relationship Model.
Subtype Mapping. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –State and apply the table, column, identifiers,
Lesson 2: Designing a Database and Creating Tables.
Introduction to Databases. What is a database?  A database program is nothing more than an electronic version of a 3x5 card file  A database is defined.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
Copyright Ó Oracle Corporation, All rights reserved. Assign Unique Identifiers A Unique Identifier (UID) is any combination of attributes and/or.
Resolving Many-to-Many Relationships. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Identify attributes which.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Databases Chapter Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved.
Understand Primary, Foreign, and Composite Keys Database Administration Fundamentals LESSON 4.2.
* 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.
3 1 Database Systems The Relational Database Model.
Database Design Sections 8 & 12 Modeling Historical Data, conditional nontranferability, time-related constraints.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
MIS2502: Data Analytics Relational Data Modeling David Schuff
IMS 6217: Database Design & Entities 1 Dr. Lawrence West, MIS Dept., University of Central Florida Database Design--Topics DB Design.
Mapping ER to Relational Model Each strong entity set becomes a table. Each weak entity set also becomes a table by adding primary key of owner entity.
RELATIONAL TABLE NORMALIZATION. Key Concepts Guidelines for Primary Keys Deletion anomaly Update anomaly Insertion anomaly Functional dependency Transitive.
Lecture # 14 Chapter # 5 The Relational Data Model and Relational Database Constraints Database Systems.
1 Database Design Sections 6 & 7 First Normal Form (1NF), Second Normal Form (2NF), Unique Identifiers (UID), Third Normal Form (3NF), Arcs, Hierarchies.
Let try to identify the conectivity of these entity relationship
Business System Development
MIS2502: Data Analytics Relational Data Modeling
The Relational Database Model
Do it now – PAGE 8 You will find your do it now task in your workbook – look for the start button! Sunday, 12 May 2019.
Database Management system
Database Management system
Presentation transcript:

Artificial, Composite and Secondary UIDs

What Will I Learn? In this lesson, you will learn to: Define the different types of unique identifiers (UIDs) Define a candidate UID and explain why an entity can sometimes have more than one candidate UID Analyze business rules and choose the most suitable primary UID from the candidates Recognize and discuss the issues of identification in the real world

Why Learn It? The unique identifier (UID) is very important in relational databases. It is the value or combination of values that enables the user to find that one unique item among all the rest. Identifying just the right attribute, combination of attributes, and/or relationships is a skill that any database designer must master. The unique identifier is the way to find your record in a file, a particular card in a deck of cards, your package in a warehouse, and a specific piece of data in a database.

Simple UIDs vs. Composite UIDs A UID that is a single attribute is a simple UID. However, sometimes a single attribute is not enough to uniquely identify an instance of an entity. If the UID is a combination of attributes, it is called a composite UID.

Artificial UIDs Artificial UIDs are those that don’t occur in the natural world but are created for purposes of identification in a system. People are not born with “numbers,” but a lot of systems assign unique numbers to identify people: student numbers, customer IDs, etc. A shoe has a color, a size, a style, but no truly descriptive “number.” However, a shoe store will assign unique numbers to each pair of shoes so they can be uniquely identified.

Artificial UIDs How can we uniquely identify a STUDENT? Could we use a combination of first name and last name? Only if we are sure that the combination is unique. Often, it is simpler and more straightforward to create an artificial attribute and make it the unique identifier. A UID can be both artificial and composite.

UIDs from Barred Relationships Sometimes the UID is a combination of an attribute and a relationship. What is the UID of ACCOUNT? Is it artificial? Is it composite? Two people could have the same bank account number, but at different banks. Bank to bank transfers always need the bank routing number in addition to the bank account number.

UIDs from Barred Relationships: Intersection Entities As we’ve seen before, the resolution of a M:M relationship often results in barred relationships from the intersection entity to the original ones. In this example, the UID of PLAY LIST ITEM comes from EVENT and SONG. The bars on the relationships tell you this.

UIDs from Barred Relationships: Intersection Entities It is possible for an intersection entity to use an artificial attribute as the UID, instead of the barred relationships to the originating entities. Each MANUFACTURER may produce one or more PRODUCTS (shoes, shirts, jeans, etc.). Each PRODUCT may be produced by one or more MANUFACTURER (Nike shoes, Adidas shoes, Levi’s jeans, etc.). CATALOG ITEM resolves this many-to-many relationship. An item in a catalog can be uniquely identified by the manufacturer number and the product code. The relationships are not barred, because an artificial UID – catalog number – has been created instead.

Candidate UIDs Sometimes there is more than one possible UID. For example, when you order a product from a commercial website, you will usually be assigned a unique customer code and also asked to enter your e-mail address. Each of these uniquely identifies you, and each could be chosen as the UID. These are both candidate UIDs. Only one of the candidate UIDs is chosen as the actual UID. This is called the primary UID. The other candidates are called secondary UIDs.

Candidate UIDs Student ID has been chosen as the primary UID in both of these STUDENT entities. The first entity has one secondary UID, while the second has two secondary UIDs (one of which is composite).

Identification: Database vs. Real World Unique identifiers make it possible for us to distinguish one instance of an entity from another. As you will see later, these become primary keys in the database. A primary key allows you to access a specific record in a database. In the real world, however, it is sometimes not so easy to distinguish one thing from another.

Terminology Key terms used in this lesson include: Artificial UID Candidate UID Composite UID Primary UID Secondary UID Simple UID UID

Summary In this lesson, you have learned how to: Define the different types of unique identifiers (UIDs) Define a candidate UID and explain why an entity can sometimes have more than one candidate UID Analyze business rules and choose the most suitable primary UID from the candidates Recognize and discuss the issues of identification in the real world