DAMA - MN 11/20/2002 Designing Your Primary Keys Denise Dykstra DAMA - Minnesota November 20, 2002.

Slides:



Advertisements
Similar presentations
DB glossary (focus on typical SQL RDBMS, not XQuery or SPARQL)
Advertisements

SQL/PL SQL Oracle By Rana Umer. Performance Tuning Indexes ROWID View Sequences Oracle By Rana Umer.
Designing MS-Access Tables
Keys, Referential Integrity and PHP One to Many on the Web.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
By RUPESH KUMAR.  Database? Types? Abstraction?  Database Models?  Database Integrity?  ACID?  RDBMS?  Normalization?  Data Warehouse?  Database.
The Relational Database Model – some relations you might want to avoid!!!
Visibility Information Exchange Web System. Source Data Import Source Data Validation Database Rules Program Logic Storage RetrievalPresentation AnalysisInterpretation.
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.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Key.
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
WFM-6103: Hydrologic Information System (HIS) Akm Saiful Islam Lecture-5: Database Management System April-October, 2006 Institute of Water and Flood Management.
Chapter 5 Normalization of Database Tables
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 5 Normalization of Database Tables.
INTEGRITY Enforcing integrity in Oracle. Oracle Tables mrobbert owner granted access.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Transforming Data Models into Database Designs
Entity-Relationship Design
Module 9: Managing Schema Objects. Overview Naming guidelines for identifiers in schema object definitions Storage and structure of schema objects Implementing.
The Relational Database Model
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 3 Objectives: Identifying and Eliminating Database.
Lecture 3 The Relational DB Model. Learning Objectives That the relational database model takes a logical view of data That the relational model’s basic.
Relational Data Model, R. Ramakrishnan and J. Gehrke with Dr. Eick’s additions 1 The Relational Model Chapter 3.
DataBase Testing. Objectives What is DB Testing ? Testing at the Data Access Layer Scope of DB Testing Need for Testing DB Objects Common Problems that.
I Copyright © 2004, Oracle. All rights reserved. Introduction.
David M. Kroenke’s Chapter One: Introduction Part Two Database Processing: Fundamentals, Design, and Implementation.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
RDB/1 An introduction to RDBMS Objectives –To learn about the history and future direction of the SQL standard –To get an overall appreciation of a modern.
Database Technical Session By: Prof. Adarsh Patel.
Database Systems: Design, Implementation, and Management Tenth Edition
Normalization (Codd, 1972) Practical Information For Real World Database Design.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 5 Normalization of Database.
Databases and Statistical Databases Session 4 Mark Viney Australian Bureau of Statistics 5 June 2007.
SQL Structured Query Language Programming Course.
Natural vs. Generated Keys. Definitions Natural key—a key that occurs in the data, that uniquely identifies rows. AKA candidate key. Generated key—a key.
1 The Relational Model. 2 Why Study the Relational Model? v Most widely used model. – Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. v “Legacy.
Oracle Data Integrator Transformations: Adding More Complexity
SQL: DDL. SQL Statements DDL - data definition language –Defining and modifying data structures (metadata): database, tables, views, etc. DML - data manipulation.
Siebel 8.0 Module 2: Overview of EIM Processing Integrating Siebel Applications.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
IST 220 Introduction to Databases Course Wrap-up.
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
Advanced Accounting Information Systems Day 10 answers Organizing and Manipulating Data September 16, 2009.
Management Information Systems, 4 th Edition 1 Chapter 8 Data and Knowledge Management.
INTRODUCTION lecture1 1. Data base concept Data is a meaningless static value. What does 3421 means? Information is the data you process in a manner that.
The Relational Database Model & The Database Development Process
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  The concept of Data, Information and Knowledge  The fundamental terms:  Database and database system  Database.
Database Systems, 8 th Edition Improving the Design Table structures cleaned up to eliminate initial partial and transitive dependencies Normalization.
1 SY306: Web and Databases for Cyber Operations Slide Set: 11 Databases - Relational Model.
Relational Database Model & Database Development Process IST359 M005 Yang Wang 342 Hinds
Chapter 3: Relational Databases
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 6-1 David M. Kroenke’s Chapter Six: Transforming Data Models into Database.
Relational Database Systems Bartosz Zagorowicz. Flat Databases  Originally databases were flat.  All information was stored in a long text file, called.
MIS 451 Building Business Intelligence Systems Data Staging.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
IT 5433 LM4 Physical Design. Learning Objectives: Describe the physical database design process Explain how attributes transpose from the logical to physical.
An Introduction to database system
DBM 380 HELP Perfect Education/ dbm380help.com.
Introduction lecture1.
Lecturer: Mukhtar Mohamed Ali “Hakaale”
Database Processing: David M. Kroenke’s Chapter Six:
CMPE/SE 131 Software Engineering March 9 Class Meeting
Database Design: Relational Model
Database Processing: David M. Kroenke’s Chapter Six:
Database Processing: David M. Kroenke’s Chapter Six:
Presentation transcript:

DAMA - MN 11/20/2002 Designing Your Primary Keys Denise Dykstra DAMA - Minnesota November 20, 2002

DAMA - MN 11/20/2002 Isn’t It Inherently Obvious? n Deliberate design n A variety of options n Pros and Cons

DAMA - MN 11/20/2002 Primary Key Rules n Uniquely Identify an object n Ability to Access one object n Link to another table (FK) n No Changes (updates) n Control over Value

DAMA - MN 11/20/2002 Considerations n Prevailing Practice at company n Conceptual vs. Surrogate n Control over value u Business supplies u Database control u Programmatic control u Insert method n Discrete vs. Non-discrete n Scope of uniqueness

DAMA - MN 11/20/2002 Options n Conceptual 3NF n Single column PK for every table u Surrogate u Generated n Homemade sequence or random number n Intelligent key n Record locator (OID) n High / Low value

DAMA - MN 11/20/2002 Surrogate Key Issues n Will it ever have “meaning”? n How is the value determined? n Partitioning ability? n Updates to data: good or bad? n Meaningless to users n Complicates the index strategy n RI could contain both meaningless key and candidate key

DAMA - MN 11/20/2002 Consider this…. A primary key strategy using all meaningless (surrogate, generated) keys can lead to PERFECT referential database integrity, while the data itself is meaningless.

DAMA - MN 11/20/2002 Using Tools n Logical models should directly support business rules n Physical models reflect the database design decisions n Problem is traceability

DAMA - MN 11/20/2002 Database Platforms n Oracle n IBM and DB2 flavors n Sybase n SQL Server n Others?

DAMA - MN 11/20/2002 It Depends! n Understanding various methods helps improve your product, whether it is a data model or a database design. n Use knowledge to achieve project objectives: speed, accuracy, abstraction

DAMA - MN 11/20/2002 Questions? Denise Dykstra VP Programs - DAMA Iowa (515)