logical design for relational database

Slides:



Advertisements
Similar presentations
Management Information Systems, Sixth Edition
Advertisements

Relational Databases Chapter 4.
The Relational Model System Development Life Cycle Normalisation
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
LOGICAL DATABASE DESIGN
Database Design & ER Diagrams
N. J. Taylor Database Management Systems (DBMS) 1.
The Relational Database Model
Chapter 4 The Relational Model.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
Concepts and Terminology Introduction to Database.
Logical Database Design Relational Model. Logical Database Design Logical database design: process of transforming conceptual data model into a logical.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
System Design System Design - Mr. Ahmad Al-Ghoul System Analysis and Design.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Database Systems, 9th Edition 1.  In this chapter, students will learn: That the relational database model offers a logical view of data About the relational.
The relational model A data model (in general) : Integrated collection of concepts for describing data (data requirements). Relational model was introduced.
* 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.
Logical Database Design and the Relational Model.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
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.
Management Information Systems by Prof. Park Kyung-Hye Chapter 7 (8th Week) Databases and Data Warehouses 07.
Fundamental of Database Systems
COP Introduction to Database Structures
Geog. 314 Working with tables.
Logical Database Design and the Rational Model
Database Development Lifecycle
Databases Chapter 9 Asfia Rahman.
Relational Databases Chapter 4.
Chapter 4 Logical Database Design and the Relational Model
Chapter 4: Logical Database Design and the Relational Model
The Relational Database Model
Databases Chapter 16.
© The McGraw-Hill Companies, All Rights Reserved APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
DESIGNING DATABASE APPLICATIONS
Chapter 5: Logical Database Design and the Relational Model
Fundamentals of Information Systems, Sixth Edition
Tables and Their Characteristics
Database Systems: Design, Implementation, and Management Tenth Edition
Database Management Systems (DBMS)
Data Models.
Chapter 4 Relational Model Characteristics
Database Relationships
CSCI-100 Introduction to Computing
Chapter 4 Relational Databases
Lecture # 13 (After 1st Exam)
Entity/Relationship Model
Translation of ER-diagram into Relational Schema
Databases and Information Management
Chapter 9 Designing Databases
Data Modelling Introduction
Database Fundamentals
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
The Relational Model Transparencies
Databases and Information Management
Accounting Information Systems 9th Edition
Database Design Hacettepe University
DATABASE DESIGN & DEVELOPMENT
Designs for Data Integrity, validations, security and controls
Design tools and techniques for a relational database system
Entity-Relationship Diagram (ERD)
Implementation of physical data model
Chapter 17 Designing Databases
From conceptual to relational data model
Relational data model. Codd's Rule E.F Codd was a Computer Scientist who invented Relational model for Database management. Based on relational model,
Presentation transcript:

logical design for relational database DATABASE DESIGN & DEVELOPMENT logical design for relational database Zatil Ridh'wah Hj Darot

Logical data modeling Motivation for logical data modeling Mapping ERD to logical design Data elements Entity relationship modeling Referential integrity

Logical design

Logical data modeling Logical data modeling is the process of representing __________________and organization in a graphical way without any regard to the physical implementation or the database management system technology involved in storing the data. A logical data model provides all the information about the various entities and the relationships between the entities present in a database.

motivation for logical data modeling Completion of conceptual modeling phase: Results in reasonably clear picture of data requirements for application system at high level of abstraction. Conceptual data model is technology- independent: analysis and design activity is not constrained by boundaries of anticipated technology that will be used for implementation _________________ may contain constructs not directly compatible with technology intended for implementation

Future ____________ may be required to eliminate data redundancy in design Transforming conceptual schema to state better compatible with implementation technology of choice is achieved via logical data modeling Logical data modeling phase serves as transition from technology- independent conceptual schema to technology- dependent design

Mapping erd to logical design (relational) Entities - Tables Attributes - Fields Key attributes - Primary keys Relationship - _________ field (foreign key)

Data elements Table A relational database consists of a collection of tables (i.e. entities), from which we want to seek information. A table consists of columns, which are the properties of the table, and rows which are the records to store and retrieve. Table characteristics: Each table represent a single subject No data item will be unnecessarily stored in more than one table All ______________ attributes in a table are dependent on the primary key Each table is void of insertion, update, and deletion anomalies

Column/ fields Columns refer to a set of fields in tables Column/ fields Columns refer to a set of fields in tables. A column describes a property we are interested in storing for the table it belongs to. Examples of fields are name, employee number, address etc. Attribute A table consists of several records(row), each record can be broken down into several smaller parts of data known as Attributes. Data types Commonly data types include: integers, floating- point numbers, string (or text), date/ time, binary, collection (such as enumeration and set).

Data indexes An index is defined by a field expression that you specify when you create the index. Typically, the field expression is a single field name, like EMP_ID. An index created on the EMP_ID field, for example, contains a sorted list of the employee ID values in the table. Each value in the list is accompanied by references to the records that contain that value. A database driver can use indexes to find records quickly. An index on the EMP_ID field, for example, greatly reduces the time that the driver spends searching for a particular employee ID value. Consider the following Where clause: WHERE emp_id = 'E10001'

entity relationship modeling Strong and Weak Entity Types An entity type is referred to as being strong if its existence does not depend upon the existence of another entity type. A ______________ of a strong entity type is that each entity occurrence is uniquely identifiable using the primary key attribute(s) of that entity type. For example, we can uniquely identify each member of staff using the staffNo attribute, which is the primary key for the Staff entity type.

A weak entity type is dependent on the existence of another entity type. An example of a weak entity type called Preference. A characteristic of a weak entity is that each entity occurrence cannot be uniquely identified using only the attributes associated with that entity type. Weak entity types are sometimes referred to as __________, dependent, or subordinate entities and strong entity types as parent, owner, or dominant entities.

referential integrity A foreign key links each tuple in the child relation to the tuple in the parent relation containing the matching candidate key value. Referential integrity means that if the foreign key contains a value, that value must refer to an existing tuple in the parent relation.

practical Go to the link below: https://www.youtube.com/watch?v=PBhftKTmdHI&list=PL4UezTfGBADBmCOYtQ8QohflQN Y1y3oE7 Open Microsoft Access and do: Practical 4: How to Make a Database - Part 4 - Queries Practical 5: How to Make a Database - Part 5- Exporting Data Practical 6: How to Make A Database - Part 6 - Visual Basic : OpenQuery Practical 7: How to Make a Database - Part 7 - Visual Basic : Transfer Spreadsheet acExport

references Database Principles: Fundamentals of Design, Implementation, and Management. Tenth Edition. Conolly, T. and Begg, C. (2014) Database Systems: A Practical Approach to Design, Implementation and Management. 6th Ed. Global Edition. Pearson.