Database Concepts. Data :Collection of facts in raw form. Information : Organized and Processed data is information. Database : A Collection of data files.

Slides:



Advertisements
Similar presentations
The Relational Model and Relational Algebra Nothing is so practical as a good theory Kurt Lewin, 1945.
Advertisements

Chapter 3 : Relational Model
The Relational Database Model
Relational Databases Chapter 4.
Chapter 3 The Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
The Relational Database Model
1 Minggu 2, Pertemuan 3 The Relational Model Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
The Relational Database Model. 2 Objectives How relational database model takes a logical view of data Understand how the relational model’s basic components.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
Chapter 5 The Relational Database Model: Introduction
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
1 Pertemuan 04 MODEL RELASIONAL Matakuliah: >/ > Tahun: > Versi: >
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
3 The Relational Model MIS 304 Winter Class Objectives That the relational database model takes a logical view of data That the relational model’s.
Lecture 2 The Relational Model. Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations.
Chapter 4 The Relational Model Pearson Education © 2014.
Relational Model Session 6 Course Name: Database System Year : 2012.
Chapter 4 The Relational Model.
Chapter 3 The Relational Model Transparencies Last Updated: Pebruari 2011 By M. Arief
Database Technical Session By: Prof. Adarsh Patel.
Organizing Data and Information AD660 – Databases, Security, and Web Technologies Marcus Goncalves Spring 2013.
DBSQL 3-1 Copyright © Genetic Computer School 2009 Chapter 3 Relational Database Model.
Chapter 3 The Relational Model. 2 Chapter 3 - Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj RM/SQL Lecture 1 ©Akhilesh Bajaj, 2000, 2002, 2003, All.
Copyright © Curt Hill The Relational Model of Database Basic organization and terms.
1 The Relational Database Model. 2 Learning Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical.
1 Chapter 1 Introduction. 2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process.
9/7/2012ISC329 Isabelle Bichindaritz1 The Relational Database Model.
The Relational Model Pertemuan 03 Matakuliah: M0564 /Pengantar Sistem Basis Data Tahun : 2008.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Module Coordinator Tan Szu Tak School of Information and Communication Technology, Politeknik Brunei Semester
IS 325 Notes for Wednesday August 28, Data is the Core of the Enterprise.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 3 The Relational Database Model.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 3 The Relational Database Model.
Announcements Reading for Monday –4.6 Homework 3 – Due 9/29.
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,
3 1 Database Systems The Relational Database Model.
Data The fact and figures that can be recorded in system and that have some special meaning assigned to it. Eg- Data of a customer like name, telephone.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
The Relational Model © Pearson Education Limited 1995, 2005 Bayu Adhi Tama, M.T.I.
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
Week 2 Lecture The Relational Database Model Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.
Chapter 4 The Relational Model Pearson Education © 2009.
The Relational Database Model
Database Systems: Design, Implementation, and Management Tenth Edition
Lecture 2 The Relational Model
DATABASE CONCEPT Class XI Presented by : Dinesh Patel PGT [Comp. Sc.]
The Relational Database Model
Database Concepts.
Chapter 3 The Relational Database Model
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
The Relational Model Transparencies
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
The Relational Database Model
Chapter 4 The Relational Model Pearson Education © 2009.
Database Systems: Design, Implementation, and Management
Presentation transcript:

Database Concepts

Data :Collection of facts in raw form. Information : Organized and Processed data is information. Database : A Collection of data files in which logically related information is stored. Data Base Management System : A Collection of programs for storing and retrieving information from the database is called DBMS.

1.Data Redundancy ( Duplication of Data ) is removed. 2.Data Inconsistency can be controlled. 3.Sharing of Data. 4.Security of Data. It means data can be protected from an unauthorized user. 5.Integrity Rules can be applied. Advantages of DBMS

Levels of Database Implementation Internal Level ( Physical Level ) Conceptual Level External Level ( View Level )

Internal Level ( Physical Level ) The lowest level of database which is closest to the physical storage. It describes how the data is actually stored on the storage medium.

Conceptual Level The level of database which describes what data is actually stored in the database.At this level the relationship between the data elements is described.

View Level ( External Level ) The level of database which is closest to the user. It is only concerned with the way how the data is viewed to the users.The System is able to create more than one views for the end user on the basis of the data stored.

Levels of Data Abstraction Physical Level Conceptual Level View 3View 2View 1

Data Independence The ability to modify a scheme definition at one level without affecting scheme definition of next higher level. It is of two types: ( 1 ) Physical Data Independence ( 2 ) Logical Data Independence

( 1 ) Physical Data Independence: The ability to modify physical level without affecting the conceptual level. In this the application programs remains the same. ( 2 ) Logical Data Independence: The ability to modify conceptual level without affecting the view level.

Relational Data Model A Data Model where data is organized in the form of tables. These tables are called relations. A relation or table is collection of horizontal rows and vertical columns. This model was proposed by E.F.Codd of IBM. The data stored in these relations is logically related. Advantages : ( 1 ) Easy to understand. ( 2 ) In this model the relationship between databases is established by data values.

S.No. Name Age

Basic Terminology 1. Relation : A relation is a table which a collection of rows and columns. 2. Domain : It is a pool of values from which the actual values are taken. 3. Tuple : The horizontal rows of a relation are called tuples. 4. Attribute : The vertical columns of a relation are called attributes. 5. Degree of a relation : The total number of attributes of a relation are termed as degree of a relation.

6.Cardinality of a relation: The total number of rows in a relation are known as cardinality of a relation. 7.View: A view is a virtual table whose contents are taken from a existing table(base table) depending upon a condition. A vies does not have data of its own. 8.Primary Key: A key or a set of keys which can be used to uniquely identify the tuples of a relation. 9.Candidate Key: A key or a set of keys which can be used as a primary key to identify the tuples of a relation.

10.Alternate Key: A key or a set of keys which can not be used to identify the tuples of a relation. 11.Foreign Key: A key in a relation which can be used to make a relationship with some other relation and it appears as a primary key in that relation.

Relational Algebra Operators in Relational Algebra 1. Select Operation : 2. Project Operation : 3. Cartesian Product Operation : 4. Union Operation : 5. Set Difference Operation : 6. Set Intersection Operation :

1. Select Operation :It is a unary operator which selects the tuples ( horizontal subset ) from a relation that satisfy a given predict or condition. The selection is denoted by the symbol sigma ( σ ). 2. Project Operation :It is a unary operator which selects the specified attributes ( vertical subset ) from a relation that satisfy a given predict or condition. The projection is denoted by the symbol pi ( π ).

3. Cartesian Product Operation : It is a binary operator which yields a new relation which has a degree ( number of attributes ) equal to the sum of the degrees of the two relations operated upon and number of tuples ( Cardinality ) equal to the product of the number of tuples of two relations. The Cartesian Product of two relations A and B is denoted by A X B.

4. Union Operation :It is a binary operator which operates on two relations and yields a new relation that contain tuples from both the relations. The condition to apply this operator are : ( a ) The two relations A and B must have same degree. ( b ) The domain of ith attribute of relation A and the domain of ith attribute of relation B must be same. All the duplicate tuples are automatically removed using this operated. The Union Operation of two relations A and B is denoted by A U B.

5. Set Difference Operation : It is a binary operator which operates on two relations and yields a new relation that contain tuples which are present in first relation but not in the second table. The condition to apply this operator is that the two relations A and B must have same degree. The new relation will contain the tuples which are present in A but not in B. The Set difference Operation of two relations A and B is denoted by A – B.

6. Set Intersection Operation : It is a binary operator which operates on two relations and yields a new relation that contain tuples which are present both the relations. The condition to apply this operator is that the two relations A and B must have same degree. The new relation will contain the common tuples of A and B. The Set Intersection operation of two relations A and B is denoted by A B.

Disadvantages of Database System 1.Extra hardware may be required. 2.System is likely to be very complex.

Thanks