Lection №4 Development of the Relational Databases.

Slides:



Advertisements
Similar presentations
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Advertisements

Database Systems: Design, Implementation, and Management Tenth Edition
Lecture-7/ T. Nouf Almujally
Introduction to Databases
Monash University Week 7 Data Modelling Relational Database Theory IMS1907 Database Systems.
File Systems and Databases
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
Chapter 17 Designing Databases
Data Management Design
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
System Analysis and Design
Academic Year 2014 Spring.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
APPENDIX C DESIGNING DATABASES
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
INTRODUCTION TO DATABASE USING MS ACCESS 2013 PART 2 NOVEMBER 4, 2014.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
Lecture 2 The Relational Model. Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations.
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
Module Title? DBMS E-R Model to Relational Model.
Week 1 Lecture MSCD 600 Database Architecture Samuel ConnSamuel Conn, Asst. Professor Suggestions for using the Lecture Slides.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Concepts and Terminology Introduction to Database.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
DBSQL 3-1 Copyright © Genetic Computer School 2009 Chapter 3 Relational Database Model.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
Storing Organizational Information - Databases
Designing Databases Systems Analysis and Design, 7e Kendall & Kendall 13 © 2008 Pearson Prentice Hall.
What's a Database A Database Primer Let’s discuss databases n Why they are hard n Why we need them.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Relational Database. Database Management System (DBMS)
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
1 Intro to Database Concepts BUAD/American University The Relational Database Model.
Fanny Widadie, S.P, M.Agr 1 Database Management Systems.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
11/07/2003Akbar Mokhtarani (LBNL)1 Normalization of Relational Tables Akbar Mokhtarani LBNL (HENPC group) November 7, 2003.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 13 Designing Databases Systems Analysis and Design Kendall & Kendall Sixth Edition.
Relational Theory and Design
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
CSE314 Database Systems Lecture 3 The Relational Data Model and Relational Database Constraints Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson.
Chapter 2 Relational Database Design and Normalization August
The relational model A data model (in general) : Integrated collection of concepts for describing data (data requirements). Relational model was introduced.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
IS 320 Notes for April 15, Learning Objectives Understand database concepts. Use normalization to efficiently store data in a database. Use.
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.
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,
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Logical Database Design and Relation Data Model Muhammad Nasir
Normalization. Overview Earliest  formalized database design technique and at one time was the starting point for logical database design. Today  is.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Designing Databases Systems Analysis and Design, 8e Kendall & Kendall 13.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
1 Management Information Systems M Agung Ali Fikri, SE. MM.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Logical Database Design and the Rational Model
Chapter 9 Designing Databases
Chapter 17 Designing Databases
Database management systems
Presentation transcript:

Lection №4 Development of the Relational Databases

Main Questions Database introduction. Development of the Relational Databases.

1.Database introduction Definition of the database Types of Databases Database Models

1.0.Repeat - IS Information System (IS) An Information System (IS) is the system of persons, data records and activities that process the data and information in a given organization, including manual processes or automated processes; Information technologies componentInformation System The computer-based information systems is only the Information technologies component of an Information System; Information technologies (IT) The computer-based information systems are the field of study for Information technologies (IT)

1.0.Repeat - HIS electronic data processing The aim of an HIS is to achieve the best possible support of patient care and administration by electronic data processing: more efficient use of the restricted resources available for patient care; qualitative improvement of the service to the patient; support of research; support of teaching;

1.0.Repeat - HIS Databases

1.0.Repeat - HIS Databases

1.1.Definition of the database Brief Database Brief. Database is a computerized record keeping system. FullDatabasedata hardware software users Full. Database is a system involving data, the hardware that physically stores that data, the software that utilizes the hardware's file system in order to 1) store the data and 2) provide a standardized method for retrieving or changing the data, and finally, the users who turn the data into information

1.2.Types of Databases Analytic databases (OLAP- On Line Analytical Processing) Analytic databases (OLAP- On Line Analytical Processing) are primarily static, read-only databases which store archived, historical data used for analysis. Operational databases (OLTP On Line Transaction Processing), Operational databases (OLTP On Line Transaction Processing), are used to manage more dynamic bits of data. This databases allow you to modify that data (add, change or delete data). These types of databases are usually used to track real- time information.

1.3. Database Models Hierarchical Databases Hierarchical Databases - defines hierarchically-arranged data. Network Databases Network Databases - use set theory to provide a tree-like hierarchy with the exception that child tables were allowed to have more than one parent. Relational Databases Relational Databases - represents data in the form of two-dimension tables.

1.3.1.Hierarchical Databases tree of data root branch This type of relationship can be visualized as upside down tree of data. In this tree, a single table acts as the "root" of the database from which other tables "branch" out. Problem 1. Problem 1. User cannot add a record to a child table until it has already been incorporated into the parent table. Problem 2.Redundancy Problem 2. Redundancy would occur because hierarchical databases handle one-to-many relationships well but do not handle many-to- many relationships well

Hierarchical Databases Structure Redundancy in the hierarchical database

1.3.2.Network Databases ІМ hierarchical model subsetnetwork model many-to-many relationships Is very similar to the hierarchical model actually. In fact, the hierarchical model is a subset of the network model. However, instead of using a single-parent tree hierarchy, this model uses set theory to provide a tree-like hierarchy with the exception that child tables were allowed to have more than one parent. This allowed the network model to support many-to-many relationships. Problem. This model was difficult to implement and maintain

Network Databases Structure

1.3.3.Relational Databases Dr. E. F. Codd 1970 Was formally introduced by Dr. E. F. Codd in 1970 and has evolved since then : Represents data in the form of two- dimension tables. Each table represents some real-world person, place, thing, or event about which information is collected. relationship Two or more tables can be linked by relationship.

2. Development of the Relational Databases Overview of the Relational Model Data Structure and Terminology Properties of Relational Tables Relationships and Keys Data Integrity Normalization DBMS

2.1.Relational Model Overview relational model two-dimension tables The relational model represents data in the form of two-dimension tables. logical view The organization of data into relational tables is known as the logical view of the database. That is, the form in which a relational database presents data to the user and the programmer.. internal view The way the database software physically stores the data on a computer disk system is called the internal view. The internal view differs from product to product.

2.2.Data Structure and Terminology databaserelational tables A database is a collection of relational tables. relational table columns rows A relational table is a flat file composed of a set of named columns and an arbitrary number of unnamed rows. data value A data value is stored in the intersection of a row and column. columns rows The columns of the tables contain information about the table. The rows of the table represent occurrences of the "thing" represented by the table.

Terminology In This Document Formal Terms Many Database Manuals Relational TableRelationTable ColumnAttributeField RowTupleRecord

2.3. Properties of Relational Tables Values are atomic. Column values are of the same kind. Each row is unique. The sequence of columns is insignificant. The sequence of rows is insignificant. Each column must have a unique name.

Properties of Relational Tables Values are atomic Values are atomic - columns in a relational table are not repeating group or arrays. Such tables are referred to as being in the "first normal form" (1NF). Column values are of the same kind Column values are of the same kind. In relational terms this means that all values in a column come from the same domain. A domain is a set of values which a column may have.

Properties of Relational Tables Each row is unique Each row is unique. This property ensures that no two rows in a relational table are identical; there is at least one column, or set of columns, the values of which uniquely identify each row in the table. The sequence of columns is insignificant. The sequence of columns is insignificant. This property states that the ordering of the columns in the relational table has no meaning. Columns can be retrieved in any order and in various sequences.

Properties of Relational Tables The Sequence of Rows is Insignificant The Sequence of Rows is Insignificant. The rows of a relational table can be retrieved in different order and sequences. Each Column Has a Unique Name. Each Column Has a Unique Name. Because the sequence of columns is insignificant, columns must be referenced by name and not by position.

2.4. Relationships and Keys relationship primaryforeign keys A relationship is an association between two or more tables. Relationships are expressed in the data values of the primary and foreign keys. primary key A primary key is a column or columns in a table whose values uniquely identify each row in a table Визначити ключові атрибути. foreign key A foreign key is a column or columns whose values are the same as the primary key of another table. The relationship is made between two relational tables by matching the values of the foreign key in one table with the values of the primary key in another.

Relationships Type one-to-one (1:1) A one-to-one (1:1) relationship is when at most one instance of a entity A is associated with one instance of entity B.

Relationships Type one-to-many (1:N) A one-to-many (1:N) relationships is when for one instance of entity A, there are zero, one, or many instances of entity B, but for one instance of entity B, there is only one instance of entity A.

Relationships Type many-to-many (M:N) A many-to-many (M:N) relationship (non-specific) is when for one instance of entity A, there are zero, one, or many instances of entity B and for one instance of entity B there are zero, one, or many instances of entity A.

2.5. Data Integrity Data integrity means, in part, that you can correctly and consistently navigate and manipulate the tables in the database. The entity integrity rule states that the value of the primary key can never be a null value (and should never be unknown). referential integrity The referential integrity rule states that if a relational table has a foreign key, then every value of the foreign key must either be null or match the values in the relational table in which that foreign key is a primary key

2.6. Normalization Basics. goal of normalization The goal of normalization is to create a set of relational tables that are free of redundant data and that can be consistently and correctly modified.. Normalization theory normal forms. five Normalization theory is based on the concepts of normal forms. There are currently five normal forms that have been defined. Normalization is essentially a two step process that puts data into tabular form by removing repeating groups and then removes duplicated data from the relational tables.

2.6. Normalization. 1NF first normal form (1NF) A relational table, by definition, is in first normal form (1NF). All values of the columns are atomic. That is, they contain no repeating values. Table in 1NF it contains redundant data

2.6. Normalization. 2NF second normal form (2NF) A relational table is in second normal form (2NF) if it is in 1NF and every non-key column is fully dependent upon the primary key.

2.6. Normalization. 3NF third normal form (3NF) A relational table is in third normal form (3NF) if it is already in 2NF and every non-key column is non transitively dependent upon its primary key. In other words, all nonkey attributes are functionally dependent only upon the primary key.

2.7. DBMS. database management system (DBMS) A database management system (DBMS) is a software package with computer programs that control the creation, maintenance, and use of a database. database administrators (DBAs) It allows organizations to conveniently develop databases for various applications by database administrators (DBAs) and other specialists.

Conclusion In this lecture was described next questions: Database introduction. Development of the Relational Databases.

Literature Electronic documentation into the intranet section of the TDMU web- server: