SlideShare a Scribd company logo
1 of 8
Introduction to DATABASE MANAGEMENT SYSTEM
Prepared by T. K. Pradhan
Data:
Basic/raw facts about something which is not organized, for
example details of some students which is not organized.
Data Item:
Each piece of information about an entity, such as name of a
person or address, age or name of a product or the price is a
Data Item.
Database:
A well-organized collection of interrelated data that ensures
safety, security and integrity of data is called database.
Prepared by T. K. Pradhan
DataBase Management System (DBMS)
Comprehensive software that provides the essential services to create,
manage and maintain the databases. In short a DBMS provides the
means to store the data in the database, to edit or delete the data
stored, to search and analyze the data in the database. They also
provide various safety and security mechanisms that ensures that in
any case stored data will be safe and accessible.
Relational DataBase Management System (RDBMS):
A Database Management System that conforms at-least half of the 12
rules defined by Dr. E.F. Codd (1970) in his research document. In a
relational data model, the data is organized into tables (i.e. Rows and
Columns). These tables are called Relations.
A row in a table represents a relationship among a set of values. Since
table is a collection of relationships it is generally referred to using the
mathematical term Relation.
Introduction to DATABASE MANAGEMENT SYSTEM
Prepared by T. K. Pradhan
Database Systems:
Systems comprising of Databases and Database Management Systems are
simply referred as database systems.
Advantages of Data Base System:
• Reduce data redundancy (duplication of data)
• Control data inconsistency to a large extent
• Database facilitate sharing of data
• Enforce standards
• Centralized databases can ensure data security
Examples of Common Database Management Systems:
MySQL, INGRES, POSTGRES, ORACLE, DB2, Microsoft Access
Introduction to DATABASE MANAGEMENT SYSTEM
Prepared by T. K. Pradhan
Levels of Database Implementation:
Internal Level ( Physical Level) : It describes how the data are actually stored on
the storage media.
Conceptual Level : It describes what data are actually stored in the database. It also
describes the relationships existing among data.
External Level (View Level) : It is closest to the users and is concerned with the way
in which the data are viewed by individual users
Data Independence: The ability to modify a scheme definition in one level without
affecting a scheme definition in the next higher level.
Two Level of Data Independence are:-
Physical Data Independence: It refers to the ability to modify the scheme followed at
the physical level without affecting the scheme followed at the conceptual level.
Logical data Independence: It refers to the ability to modify the scheme followed at
the conceptual level without affecting the scheme followed at the External level.
Introduction to DATABASE MANAGEMENT SYSTEM
Prepared by T. K. Pradhan
Data (Database) Model: A way by which data structures and their relationships are analyzed.
• Relational data model
• Network data model
• Hierarchical data model
Relational Data Model:
In this model data is organized into tabular structures (tables) called relations. A database may
contain many relations providing a better classification of data based on its nature and use.
Multiple relations are then linked/ associated together on some common key data values (foreign
key). In a relation the rows represent the record and known as Tuple and the columns referred as
Attribute.
Network Data Model :
In this model data is represented by collections of records and relationships among data are
represented by links. A record is collection of fields i.e. attributes, each of which contents only one
data value.
Hierarchical Data Model :
In this model records are organized as trees, data is represented by collection of records
connected to one another through links.
Introduction to DATABASE MANAGEMENT SYSTEM
Prepared by T. K. Pradhan
Introduction to DATABASE MANAGEMENT SYSTEM
BASICS OF RELATIONAL MODEL RELATION :
• Data is stored in a relational database in one or more tables. These
tables termed as relation.
Atomicity : At every row-column intersection (Cell) there must be an
atomic value i.e. a value that can not be further subdivided.
No duplicity: No two rows of relation will be identical i.e. in any two rows
value in at least one column must be different.
• Ordering of rows is immaterial.
• Ordering of columns is immaterial.
Prepared by T. K. Pradhan
Introduction to DATABASE MANAGEMENT SYSTEM
Relational Database terminology
Tuple : A row in a relation is called a tuple
Attribute : A column in a relation is called an attribute
Domain : Domain of an attribute refers to the set of all the possible values for that
attribute.
Degree : Number of attributes in a relation is the degree of that relation
Cardinality : Number of tuples in a relation is the cardinality of that relation.
Candidate Key : A set of one or more minimal attributes used to uniquely identify a tuple in
the relation and which can act as Primary Key. A relation can have multiple candidate keys
Primary Key : A candidate key that is primarily chosen for unique identification of tuples in a
Relation. Any subset of Primary key should not be Primary key.
Alternate Key : Candidate keys that not chosen as primary key are the alternate keys.
Example: In A LIBRARY Table
•Candidate keys can be Accession No, Book No
• Primary key : If we select Book No as primary key for our purpose then Alternate Key will be
Accession No.
Views : A view is a virtual table whose contents are taking from other tables depending
upon
a condition.
Prepared by T. K. Pradhan
KEY POINTS OF THE CHAPTER
✯ Database Management System(DBMS) It is a computer based record keeping system that stores the data centrally and manages data efficiently.
✯ Relational Data Model In this model the data is organized into tables called relations .The relationship is established betwee n 2 tables on the basis of common column.
✯ Network Data Model In this model the data is represented by collections of records and relationships among data are represented by links .
✯ Hierarchical Data Model In this model records are organized in the form of parent-child trees.
✯ Object Oriented Data Model in this model objects represent the data and associated operations where an object is identifiable entity with some characteristics and behavior.
✯ Normalization Is a process of attaining good database design by removing/reducing data anomalies.
✯ DDL: Data Definition Language o Part of the SQL that facilitates defining creation/modification etc. of database object such as tables, indexes, sequences etc.
✯ DML: Data Manipulation Language. o Part of the SQL that facilitates manipulation (additions/deletions/modification) of data which residing in the database tables.
✯ Meta Data
o Facts/data about the data stored in table.
✯ Data Dictionary
o A file containing facts/data about the data stored in table
✯ Relational Data Model
o In this model data is organized into tables i.e. rows and columns. These tables are called relations.
✯ The Network Data Model
o In this model data are represented by collection of records & relationships among data. The collections of records are connected to one another by means of links.
✯ The Hierarchical Data Model
o In this model records are organized as trees rather than arbitrary graphs.
✯ Object Oriented Data Model
o Data and associated operations are represented by objects. An object is an identifiable entity with some characteristics and behavior.
✯ Relation:
o Table in Database
✯ Domain:
o Pool of values from which the actual values appearing
✯ Tuple:
o Any single row of a relation
✯ Attribute:
o Any column of relation
✯ Degree:
o Number of attributes(fields) in a relation
✯ Cardinality:
o Number of tuples(rows) in a relation
✯ View:
o Virtual table that does not really exist in its own right but can be used to vies
✯ Primary Key:
o Set of one or more attributes that can uniquely identify tuples with in the relation.
✯ Candidate Key:
o A Candidate Key is the one that is capable of becoming Primary key i.e., a field or attribute that has unique value for each row in the relation
✯ Alternate Key :
o A candidate key that is not primary key is called alternate key.
✯ Foreign Key:
o A non-key attribute, whose values are derived from the primary key of some other table
✯ Integrity Constraints
o Integrity Constraints are the rules that a database must comply all the times. It determines what all changes are permissible to a database.
Introduction to DATABASE MANAGEMENT SYSTEM

More Related Content

Similar to PPT_DBMS.pptx

Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part IIKavithaA19
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational modelChirag vasava
 
Dbms 9: Relational Model
Dbms 9: Relational ModelDbms 9: Relational Model
Dbms 9: Relational ModelAmiya9439793168
 
Sql interview questions and answers
Sql interview questions and  answersSql interview questions and  answers
Sql interview questions and answerssheibansari
 
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...Dipen Parmar
 
database-model group presentation.pptx
database-model group   presentation.pptxdatabase-model group   presentation.pptx
database-model group presentation.pptxRuksanKarki
 
Database Concepts.pptx
Database Concepts.pptxDatabase Concepts.pptx
Database Concepts.pptxDhruvSavaliya9
 
2. Chapter Two.pdf
2. Chapter Two.pdf2. Chapter Two.pdf
2. Chapter Two.pdffikadumola
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbmsAnjaan Gajendra
 
DBMS & Data Models - In Introduction
DBMS & Data Models - In IntroductionDBMS & Data Models - In Introduction
DBMS & Data Models - In IntroductionRajeev Srivastava
 

Similar to PPT_DBMS.pptx (20)

Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
 
Database.pptx
Database.pptxDatabase.pptx
Database.pptx
 
RDBMS
RDBMSRDBMS
RDBMS
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
 
Codds rules & keys
Codds rules & keysCodds rules & keys
Codds rules & keys
 
Dbms 9: Relational Model
Dbms 9: Relational ModelDbms 9: Relational Model
Dbms 9: Relational Model
 
DBMS basics
DBMS basicsDBMS basics
DBMS basics
 
Sql interview questions and answers
Sql interview questions and  answersSql interview questions and  answers
Sql interview questions and answers
 
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
 
database-model group presentation.pptx
database-model group   presentation.pptxdatabase-model group   presentation.pptx
database-model group presentation.pptx
 
DATABASE-1.pptx
DATABASE-1.pptxDATABASE-1.pptx
DATABASE-1.pptx
 
Data models
Data modelsData models
Data models
 
Data models
Data modelsData models
Data models
 
Unit 2 DBMS.pptx
Unit 2 DBMS.pptxUnit 2 DBMS.pptx
Unit 2 DBMS.pptx
 
Database Concepts.pptx
Database Concepts.pptxDatabase Concepts.pptx
Database Concepts.pptx
 
2. Chapter Two.pdf
2. Chapter Two.pdf2. Chapter Two.pdf
2. Chapter Two.pdf
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbms
 
DBMS & Data Models - In Introduction
DBMS & Data Models - In IntroductionDBMS & Data Models - In Introduction
DBMS & Data Models - In Introduction
 
Dbms Basics
Dbms BasicsDbms Basics
Dbms Basics
 

Recently uploaded

Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 

Recently uploaded (20)

Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 

PPT_DBMS.pptx

  • 1. Introduction to DATABASE MANAGEMENT SYSTEM Prepared by T. K. Pradhan Data: Basic/raw facts about something which is not organized, for example details of some students which is not organized. Data Item: Each piece of information about an entity, such as name of a person or address, age or name of a product or the price is a Data Item. Database: A well-organized collection of interrelated data that ensures safety, security and integrity of data is called database.
  • 2. Prepared by T. K. Pradhan DataBase Management System (DBMS) Comprehensive software that provides the essential services to create, manage and maintain the databases. In short a DBMS provides the means to store the data in the database, to edit or delete the data stored, to search and analyze the data in the database. They also provide various safety and security mechanisms that ensures that in any case stored data will be safe and accessible. Relational DataBase Management System (RDBMS): A Database Management System that conforms at-least half of the 12 rules defined by Dr. E.F. Codd (1970) in his research document. In a relational data model, the data is organized into tables (i.e. Rows and Columns). These tables are called Relations. A row in a table represents a relationship among a set of values. Since table is a collection of relationships it is generally referred to using the mathematical term Relation. Introduction to DATABASE MANAGEMENT SYSTEM
  • 3. Prepared by T. K. Pradhan Database Systems: Systems comprising of Databases and Database Management Systems are simply referred as database systems. Advantages of Data Base System: • Reduce data redundancy (duplication of data) • Control data inconsistency to a large extent • Database facilitate sharing of data • Enforce standards • Centralized databases can ensure data security Examples of Common Database Management Systems: MySQL, INGRES, POSTGRES, ORACLE, DB2, Microsoft Access Introduction to DATABASE MANAGEMENT SYSTEM
  • 4. Prepared by T. K. Pradhan Levels of Database Implementation: Internal Level ( Physical Level) : It describes how the data are actually stored on the storage media. Conceptual Level : It describes what data are actually stored in the database. It also describes the relationships existing among data. External Level (View Level) : It is closest to the users and is concerned with the way in which the data are viewed by individual users Data Independence: The ability to modify a scheme definition in one level without affecting a scheme definition in the next higher level. Two Level of Data Independence are:- Physical Data Independence: It refers to the ability to modify the scheme followed at the physical level without affecting the scheme followed at the conceptual level. Logical data Independence: It refers to the ability to modify the scheme followed at the conceptual level without affecting the scheme followed at the External level. Introduction to DATABASE MANAGEMENT SYSTEM
  • 5. Prepared by T. K. Pradhan Data (Database) Model: A way by which data structures and their relationships are analyzed. • Relational data model • Network data model • Hierarchical data model Relational Data Model: In this model data is organized into tabular structures (tables) called relations. A database may contain many relations providing a better classification of data based on its nature and use. Multiple relations are then linked/ associated together on some common key data values (foreign key). In a relation the rows represent the record and known as Tuple and the columns referred as Attribute. Network Data Model : In this model data is represented by collections of records and relationships among data are represented by links. A record is collection of fields i.e. attributes, each of which contents only one data value. Hierarchical Data Model : In this model records are organized as trees, data is represented by collection of records connected to one another through links. Introduction to DATABASE MANAGEMENT SYSTEM
  • 6. Prepared by T. K. Pradhan Introduction to DATABASE MANAGEMENT SYSTEM BASICS OF RELATIONAL MODEL RELATION : • Data is stored in a relational database in one or more tables. These tables termed as relation. Atomicity : At every row-column intersection (Cell) there must be an atomic value i.e. a value that can not be further subdivided. No duplicity: No two rows of relation will be identical i.e. in any two rows value in at least one column must be different. • Ordering of rows is immaterial. • Ordering of columns is immaterial.
  • 7. Prepared by T. K. Pradhan Introduction to DATABASE MANAGEMENT SYSTEM Relational Database terminology Tuple : A row in a relation is called a tuple Attribute : A column in a relation is called an attribute Domain : Domain of an attribute refers to the set of all the possible values for that attribute. Degree : Number of attributes in a relation is the degree of that relation Cardinality : Number of tuples in a relation is the cardinality of that relation. Candidate Key : A set of one or more minimal attributes used to uniquely identify a tuple in the relation and which can act as Primary Key. A relation can have multiple candidate keys Primary Key : A candidate key that is primarily chosen for unique identification of tuples in a Relation. Any subset of Primary key should not be Primary key. Alternate Key : Candidate keys that not chosen as primary key are the alternate keys. Example: In A LIBRARY Table •Candidate keys can be Accession No, Book No • Primary key : If we select Book No as primary key for our purpose then Alternate Key will be Accession No. Views : A view is a virtual table whose contents are taking from other tables depending upon a condition.
  • 8. Prepared by T. K. Pradhan KEY POINTS OF THE CHAPTER ✯ Database Management System(DBMS) It is a computer based record keeping system that stores the data centrally and manages data efficiently. ✯ Relational Data Model In this model the data is organized into tables called relations .The relationship is established betwee n 2 tables on the basis of common column. ✯ Network Data Model In this model the data is represented by collections of records and relationships among data are represented by links . ✯ Hierarchical Data Model In this model records are organized in the form of parent-child trees. ✯ Object Oriented Data Model in this model objects represent the data and associated operations where an object is identifiable entity with some characteristics and behavior. ✯ Normalization Is a process of attaining good database design by removing/reducing data anomalies. ✯ DDL: Data Definition Language o Part of the SQL that facilitates defining creation/modification etc. of database object such as tables, indexes, sequences etc. ✯ DML: Data Manipulation Language. o Part of the SQL that facilitates manipulation (additions/deletions/modification) of data which residing in the database tables. ✯ Meta Data o Facts/data about the data stored in table. ✯ Data Dictionary o A file containing facts/data about the data stored in table ✯ Relational Data Model o In this model data is organized into tables i.e. rows and columns. These tables are called relations. ✯ The Network Data Model o In this model data are represented by collection of records & relationships among data. The collections of records are connected to one another by means of links. ✯ The Hierarchical Data Model o In this model records are organized as trees rather than arbitrary graphs. ✯ Object Oriented Data Model o Data and associated operations are represented by objects. An object is an identifiable entity with some characteristics and behavior. ✯ Relation: o Table in Database ✯ Domain: o Pool of values from which the actual values appearing ✯ Tuple: o Any single row of a relation ✯ Attribute: o Any column of relation ✯ Degree: o Number of attributes(fields) in a relation ✯ Cardinality: o Number of tuples(rows) in a relation ✯ View: o Virtual table that does not really exist in its own right but can be used to vies ✯ Primary Key: o Set of one or more attributes that can uniquely identify tuples with in the relation. ✯ Candidate Key: o A Candidate Key is the one that is capable of becoming Primary key i.e., a field or attribute that has unique value for each row in the relation ✯ Alternate Key : o A candidate key that is not primary key is called alternate key. ✯ Foreign Key: o A non-key attribute, whose values are derived from the primary key of some other table ✯ Integrity Constraints o Integrity Constraints are the rules that a database must comply all the times. It determines what all changes are permissible to a database. Introduction to DATABASE MANAGEMENT SYSTEM