De-normalize if… Performance is unsatisfactory Table has a low update rate –(sacrifice flexibility) Table has a high query rate –(speed up retrieval)

Slides:



Advertisements
Similar presentations
The Relational Database Model
Advertisements

Concepts of Database Management Sixth Edition
Chapter 3 The Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Concepts of Database Management Sixth Edition
Chapter Physical Database Design Methodology Software & Hardware Mapping Logical Design to DBMS Physical Implementation Security Implementation Monitoring.
Chapter 6 Methodology Conceptual Databases Design Transparencies © Pearson Education Limited 1995, 2005.
Physical Database Design CIT alternate keys - named constraints - indexes.
Concepts of Database Management, 4th Edition, Pratt & Adamski
1 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology.
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
Physical Database Monitoring and Tuning the Operational System.
Lecture Fourteen Methodology - Conceptual Database Design
1 Minggu 2, Pertemuan 3 The Relational Model Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
Concepts of Database Management Sixth Edition
A Guide to MySQL 7. 2 Objectives Understand, define, and drop views Recognize the benefits of using views Use a view to update data Grant and revoke users’
Concepts of Database Management Seventh Edition
A Guide to SQL, Seventh Edition. Objectives Understand, create, and drop views Recognize the benefits of using views Grant and revoke user’s database.
Methodology Conceptual Database Design
Modeling & Designing the Database
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
CSC271 Database Systems Lecture # 6. Summary: Previous Lecture  Relational model terminology  Mathematical relations  Database relations  Properties.
Lecture 2 The Relational Model. Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Chapter 4 The Relational Model Pearson Education © 2014.
Chapter 4 The Relational Model.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
Chapter 3 The Relational Model Transparencies Last Updated: Pebruari 2011 By M. Arief
Data at the Core of the Enterprise. Objectives  Define of database systems.  Introduce data modeling and SQL.  Discuss emerging requirements of database.
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
Chapters 17 & 18 Physical Database Design Methodology.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Concepts of Database Management, Fifth Edition Chapter 4: The Relational Model 3: Advanced Topics.
Chapter 4 The Relational Model 3: Advanced Topics Concepts of Database Management Seventh Edition.
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Methodology - Conceptual Database Design Transparencies
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Software School of Hunan University Database Systems Design Part III Section 5 Design Methodology.
Methodology Conceptual Databases Design
CSCI 3140 Module 2 – Conceptual Database Design Theodore Chiasson Dalhousie University.
1 Chapter 15 Methodology Conceptual Databases Design Transparencies Last Updated: April 2011 By M. Arief
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
Methodology - Conceptual Database Design. 2 Design Methodology u Structured approach that uses procedures, techniques, tools, and documentation aids to.
1/26/2004TCSS545A Isabelle Bichindaritz1 Database Management Systems Design Methodology.
DATABASE MGMT SYSTEM (BCS 1423) Chapter 5: Methodology – Conceptual Database Design.
Chapter 6 Database Administration
Concepts of Database Management Eighth Edition Chapter 6 Database Design 2: Design Method.
Concepts of Database Management Sixth Edition Chapter 6 Database Design 2: Design Method.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Methodology - Conceptual Database Design
1 Chapter 6 Database Administration. 2 Introduction Database administration The process of managing a database Database administrator A person or an entire.
Concepts of Database Management, Fifth Edition Chapter 6: Database Design 2: Design Methodology.
Part4 Methodology of Database Design Chapter 07- Overview of Conceptual Database Design Lu Wei College of Software and Microelectronics Northwestern Polytechnical.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
The Relational Model. 2 Relational Model Terminology u A relation is a table with columns and rows. –Only applies to logical structure of the database,
CIS 250 Advanced Computer Applications Database Management Systems.
Introduction to Databases Angela Clark University of South Alabama.
1 6 Concepts of Database Management, 5 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology Spring 2006.
Chapter 3: Relational Databases
Concepts of Database Management, Fifth Edition Chapter 6: Database Design 2: Design Methodology.
Week 2 Lecture The Relational Database Model Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
Chapter 4 The Relational Model Pearson Education © 2009.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Chapter 4 The Relational Model Pearson Education © 2009.
A Guide to SQL, Eighth Edition
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
Presentation transcript:

De-normalize if… Performance is unsatisfactory Table has a low update rate –(sacrifice flexibility) Table has a high query rate –(speed up retrieval)

Views Snapshot of certain data in the database at a given moment in time Usually much less involved than the full database, offers simplification. Provides measure of security, since sensitive tables or columns can be omitted. Provides data independence

Information-Level Design User Views –Set of requirements that are necessary to support the operations of a particular user. General Database Design Methodology –Represent the user view as a collection of tables. –Normalize these tables. –Identify all keys. –Merge the result of the previous steps into the design.

Methodology Represent the user view as a collection of tables. 1.Determine the entities involved and create a separate table for each type. 2.Determine the primary key for each of these tables. 3.Determine the properties for each of these entities. 4.Determine relationships among the entities.

Methodology Normalize tables Represent all keys –Primary –Alternate –Secondary –Foreign

Physical-Level Design Undertaken once the information-level design is complete. Most database management systems support primary, candidate, secondary, and foreign keys. A scheme may be needed to ensure the uniqueness of primary and secondary keys.

Alternative Representations

Representing Cardinality

Complementary Approaches Bottom-up (normalization) –Starting from the specific user requirements to ultimately synthesize the design. Top-down (E-R modeling) –Begins with a general database design that models the overall enterprise and refines the model until a design is achieved.

Top-down Approach 1.Review data gathered on all views without attempting to create any relations. 2.Determine the basic entities of interest. 3.Start a table for each entity. 4.Determine and fill in a primary key for each table 5.Add foreign keys as necessary

Indexes Conceptually the same as an index in a book. Record numbers are automatically assigned and used by the DBMS.

Advantages and Disadvantages of Indexes Can be added or dropped at will. Makes certain types of retrieval more efficient. Occupies space that can be used for something else. The DBMS must update the index whenever corresponding data in the database are updated.