SlideShare a Scribd company logo
1 of 31
Database is an integral part of an organization. Aspiring
database developers should be able to efficiently design
and implement databases.
Knowledge of these will enable the developers to build
robust database solutions.
This module will help students to understand the concepts
related to relational databases.
Rationale
In this session, you will learn to:
Define a database management system
Describe the types of data models
Objectives
What is a
database?
Database Management Systems
A database is a collection of logically related data.
Data means known facts, which are meaningful and can be
recorded.
For example:
Database Management Systems (Contd.)
Hard Disk
Address Book
Database Management Systems (DBMS) is the software
required to perform the task of maintaining databases.
Management of data involves:
Defining structures for data storage.
Providing methods for data manipulation, such as adding,
editing, and deleting data.
Providing data security against unauthorized access.
Database Management Systems (Contd.)
The main objectives of any DBMS are to:
Provide an efficient and easy way to store, update, and retrieve
data from a database.
Manage information about users who interact with the DBMS,
and the tasks that these users can perform on the data.
Database Management Systems (Contd.)
Now, let us understand the
working of DBMS.
Database Management Systems (Contd.)
Database Management Systems (Contd.)
Database
DBMS
Request for
data
Retrieved data
returned as a result
User system to extract
information from the
database
What is a data
model?
Data Models
Data Models (Contd.)
A data model is a description of the data in a database.
Data models can be broadly classified into the following
categories:
Object-based logical model:
Focuses on describing the data, the relationship among the data,
and any constraints defined.
Record-based logical model:
Focuses on specifying the logical structuring of the database.
Let us understand the
object-based logical model.
Object-Based Logical Model
The ER model:
Views the real world as a collection of objects or entities and
the relationship among them.
Has a corresponding diagramming technique.
Object-Based Logical Model (Contd.)
The following diagram shows various components and
depicts the relationship between them.
Object-Based Logical Model (Contd.)
Entities
Relationship
Attributes
Attributes
An entity:
Is any object, place, person, or activity about which the data is
recorded.
Can be categorized as entity type and entity instance.
In the ER model diagramming technique, entities are named
and represented inside a box.
For example:
Object-Based Logical Model (Contd.)
Entity can be of the following types:
Dependent entity:
Depends on another entity for existence.
Is also called as a weak entity.
Independent entity:
Does not depend on any other entity for existence.
Is also called as a regular entity.
The following diagram consists of an entity, OFFERING,
which is dependent on an entity, COURSE.
Object-Based Logical Model (Contd.)
Independent
Entity
Dependent
Entity
Chen defined a relationship as “an association among
entities”.
A relationship is depicted as a diamond with the name of the
relationship type.
For example:
Object-Based Logical Model (Contd.)
Relationship
The following diagram represents the association of an
entity with itself.
Object-Based Logical Model (Contd.)
STUDENT
SEMINAR
An entity associating with
itself can be a student giving
a seminar presentation to
other students.
The following diagram represents multiple relationships
between the entities, TEACHER and STUDENT.
Object-Based Logical Model (Contd.)
The following statement has been extracted from a case
presented by a manufacturer regarding the maintenance of
their data: “A supplier ships certain parts”. Identify the
entities mentioned in this statement, and their relationship.
Draw a diagram depicting the relationship.
Just a minute
Solution:
Entities: SUPPLIER, PARTS
Relationship: SHIP or SUPPLIES
There are three types of relationships:
One-to-one
One-to-many (or Many-to-one)
Many-to-many
Object-Based Logical Model (Contd.)
The following diagram represents the one-to-one
relationship between DEPARTMENT and DEPARTMENT
HEAD.
Object-Based Logical Model (Contd.)
For a particular DEPARTMENT there can be only one
DEPARTMENT HEAD.
The following diagram represents the many-to-one
relationship between STUDENT and MAJOR.
Object-Based Logical Model (Contd.)
A STUDENT can MAJOR in only one course, but many
STUDENTs can register for a given MAJOR course.
The following diagram represents the many-to-many
relationship between STUDENT and COURSE.
Object-Based Logical Model (Contd.)
A STUDENT can take many COURSEs and many
STUDENTs can register for a given COURSE.
What do the following ER diagrams represent?
Just a minute
Solution:
Many students can work on many projects.
Many employees belong to only one department.
Consider the following statement of a manufacturing
company:
“A supplier supplies certain parts. A particular part is not
necessarily supplied by only one supplier. No supplier
supplies only a single part.”
What type of relationship is this? Draw a diagram to depict
the relationship.
Just a minute
Solution:
Many-to-many relationship
An attribute:
Is a property of a given entity.
Is depicted as ellipses, labeled with the name of the property.
The following diagram shows the various attributes of the
entity, STUDENT.
Object-Based Logical Model (Contd.)
A manufacturer needs to maintain the following details
about the supplier:
Name
Address
Credit status
Assigned code number
Draw a diagram to depict this information.
Just a minute
Solution:
A subtype:
Is a subset of another entity.
Is always dependent on the supertype for its existence.
The attributes of a supertype apply to all of its subtypes.
Object-Based Logical Model (Contd.)
The following diagram shows the relationship between
supertype (COURSE) and subtypes (STANDLONE and
SEMESTER).
Object-Based Logical Model (Contd.)
The supertype is connected to the
relationship with a line containing a
crossbar.
There are two types of suppliers. One type of supplier
allows credit, while the other type insists on payment in
cash before delivery. The manufacturer wishes to maintain
separate information on these two types of suppliers. For
the credit supplier, “credit period” and “credit limit” have to
be recorded. For the cash supplier, “date of payment” has to
be stored. Represent this information diagrammatically.
Just a minute
Solution:
In this session, you learned that:
Data models can be classified as:
Object-based logical model
Record-based logical model
In the ER diagramming technique:
Entities are represented as rectangles.
Relationships are represented as diamonds.
Attributes are represented as ellipses.
Relationships, whether many-to-many, one-to-many, or one-
to-one are represented symbolically.
Weak entities are represented by double-lined boxes.
Subtypes are connected to the supertype by an unnamed
relationship, marked with a crossbar on top.
Summary

More Related Content

What's hot

Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database languageJafar Nesargi
 
The three level of data modeling
The three level of data modelingThe three level of data modeling
The three level of data modelingsharmila_yusof
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbmsAnjaan Gajendra
 
Logical database design and the relational model(database)
Logical database design and the relational model(database)Logical database design and the relational model(database)
Logical database design and the relational model(database)welcometofacebook
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMSkoolkampus
 
OODM-object oriented data model
OODM-object oriented data modelOODM-object oriented data model
OODM-object oriented data modelAnilPokhrel7
 
DBMS - Relational Model
DBMS - Relational ModelDBMS - Relational Model
DBMS - Relational ModelOvais Imtiaz
 
ER Modeling and Introduction to RDBMS
ER Modeling and Introduction to RDBMSER Modeling and Introduction to RDBMS
ER Modeling and Introduction to RDBMSRubal Sagwal
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database Rc Os
 
Dbms 9: Relational Model
Dbms 9: Relational ModelDbms 9: Relational Model
Dbms 9: Relational ModelAmiya9439793168
 
The relational database model chapter 2
The relational database model  chapter 2The relational database model  chapter 2
The relational database model chapter 2Nargis Ehsan
 
Relational Database & Database Management System
Relational Database & Database Management SystemRelational Database & Database Management System
Relational Database & Database Management SystemNimrakhan89
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbmsNaresh Kumar
 
Summary data modelling
Summary data modellingSummary data modelling
Summary data modellingNovita Sari
 
Database 3 Conceptual Modeling And Er
Database 3   Conceptual Modeling And ErDatabase 3   Conceptual Modeling And Er
Database 3 Conceptual Modeling And ErAshwani Kumar Ramani
 
Data Models & Introduction to UML
Data Models & Introduction to UML Data Models & Introduction to UML
Data Models & Introduction to UML نبيله نواز
 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modelingoudesign
 

What's hot (20)

Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database language
 
The three level of data modeling
The three level of data modelingThe three level of data modeling
The three level of data modeling
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbms
 
Logical database design and the relational model(database)
Logical database design and the relational model(database)Logical database design and the relational model(database)
Logical database design and the relational model(database)
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
 
OODM-object oriented data model
OODM-object oriented data modelOODM-object oriented data model
OODM-object oriented data model
 
DBMS - Relational Model
DBMS - Relational ModelDBMS - Relational Model
DBMS - Relational Model
 
ER Modeling and Introduction to RDBMS
ER Modeling and Introduction to RDBMSER Modeling and Introduction to RDBMS
ER Modeling and Introduction to RDBMS
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database
 
Fundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
Fundamentals of Data Modeling and Database Design by Dr. Kamal GulatiFundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
Fundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
 
Dbms 9: Relational Model
Dbms 9: Relational ModelDbms 9: Relational Model
Dbms 9: Relational Model
 
The relational database model chapter 2
The relational database model  chapter 2The relational database model  chapter 2
The relational database model chapter 2
 
Database design
Database designDatabase design
Database design
 
Relational Database & Database Management System
Relational Database & Database Management SystemRelational Database & Database Management System
Relational Database & Database Management System
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbms
 
Er Modeling
Er ModelingEr Modeling
Er Modeling
 
Summary data modelling
Summary data modellingSummary data modelling
Summary data modelling
 
Database 3 Conceptual Modeling And Er
Database 3   Conceptual Modeling And ErDatabase 3   Conceptual Modeling And Er
Database 3 Conceptual Modeling And Er
 
Data Models & Introduction to UML
Data Models & Introduction to UML Data Models & Introduction to UML
Data Models & Introduction to UML
 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modeling
 

Viewers also liked

Viewers also liked (12)

XML Unit 01
XML Unit 01XML Unit 01
XML Unit 01
 
FMK2016 - HOunza Koudelka - Audit and Performance (Sponsored Session)
FMK2016 - HOunza Koudelka - Audit and Performance (Sponsored Session)FMK2016 - HOunza Koudelka - Audit and Performance (Sponsored Session)
FMK2016 - HOunza Koudelka - Audit and Performance (Sponsored Session)
 
RDBMS.
RDBMS.RDBMS.
RDBMS.
 
C1 basic concepts of database
C1 basic concepts of databaseC1 basic concepts of database
C1 basic concepts of database
 
Diffrence between dbms and rdbms
Diffrence between dbms and rdbmsDiffrence between dbms and rdbms
Diffrence between dbms and rdbms
 
FMK2016 - Holger Darjus - Das Transistor-Prinzip
FMK2016 - Holger Darjus - Das Transistor-PrinzipFMK2016 - Holger Darjus - Das Transistor-Prinzip
FMK2016 - Holger Darjus - Das Transistor-Prinzip
 
RDBMS
RDBMSRDBMS
RDBMS
 
RDBMS.ppt
RDBMS.pptRDBMS.ppt
RDBMS.ppt
 
Rdbms
RdbmsRdbms
Rdbms
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database model
 
Object Oriented Dbms
Object Oriented DbmsObject Oriented Dbms
Object Oriented Dbms
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
 

Similar to RDBMS_Unit 01

U2_ER_modeling.pptx
U2_ER_modeling.pptxU2_ER_modeling.pptx
U2_ER_modeling.pptxssusera7b660
 
software_engg-chap-03.ppt
software_engg-chap-03.pptsoftware_engg-chap-03.ppt
software_engg-chap-03.ppt064ChetanWani
 
Conceptual Data Modelling Using ER-models
Conceptual Data Modelling Using ER-modelsConceptual Data Modelling Using ER-models
Conceptual Data Modelling Using ER-modelsShailaja Jayaprakash
 
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdfchapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdfMisganawAbeje1
 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPTTrinath
 
Informatica Data Modelling : Importance of Conceptual Models
Informatica Data Modelling : Importance of  Conceptual ModelsInformatica Data Modelling : Importance of  Conceptual Models
Informatica Data Modelling : Importance of Conceptual ModelsZaranTech LLC
 
Modeling System Requirements
Modeling System RequirementsModeling System Requirements
Modeling System RequirementsAsjad Raza
 
UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxNwabueze Obioma
 
Bca examination 2015 dbms
Bca examination 2015 dbmsBca examination 2015 dbms
Bca examination 2015 dbmsAnjaan Gajendra
 
introduction of database in DBMS
introduction of database in DBMSintroduction of database in DBMS
introduction of database in DBMSAbhishekRajpoot8
 
OOAD unit1 introduction to object orientation
 OOAD unit1 introduction to object orientation OOAD unit1 introduction to object orientation
OOAD unit1 introduction to object orientationDr Chetan Shelke
 
MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...
MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...
MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...Aravind NC
 
Dbms questions
Dbms questionsDbms questions
Dbms questionsSrikanth
 

Similar to RDBMS_Unit 01 (20)

U2_ER_modeling.pptx
U2_ER_modeling.pptxU2_ER_modeling.pptx
U2_ER_modeling.pptx
 
Database model
Database modelDatabase model
Database model
 
Er diagrams
Er diagramsEr diagrams
Er diagrams
 
software_engg-chap-03.ppt
software_engg-chap-03.pptsoftware_engg-chap-03.ppt
software_engg-chap-03.ppt
 
Er model
Er modelEr model
Er model
 
Data Modeling.docx
Data Modeling.docxData Modeling.docx
Data Modeling.docx
 
Conceptual Data Modelling Using ER-models
Conceptual Data Modelling Using ER-modelsConceptual Data Modelling Using ER-models
Conceptual Data Modelling Using ER-models
 
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdfchapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPT
 
Unit 1
Unit 1Unit 1
Unit 1
 
Informatica Data Modelling : Importance of Conceptual Models
Informatica Data Modelling : Importance of  Conceptual ModelsInformatica Data Modelling : Importance of  Conceptual Models
Informatica Data Modelling : Importance of Conceptual Models
 
Modeling System Requirements
Modeling System RequirementsModeling System Requirements
Modeling System Requirements
 
UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptx
 
Db lec 01
Db lec 01Db lec 01
Db lec 01
 
Bca examination 2015 dbms
Bca examination 2015 dbmsBca examination 2015 dbms
Bca examination 2015 dbms
 
introduction of database in DBMS
introduction of database in DBMSintroduction of database in DBMS
introduction of database in DBMS
 
Sq lite module3
Sq lite module3Sq lite module3
Sq lite module3
 
OOAD unit1 introduction to object orientation
 OOAD unit1 introduction to object orientation OOAD unit1 introduction to object orientation
OOAD unit1 introduction to object orientation
 
MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...
MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...
MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...
 
Dbms questions
Dbms questionsDbms questions
Dbms questions
 

More from Prashanth Shivakumar

More from Prashanth Shivakumar (10)

WPF (Windows Presentation Foundation Unit 01)
WPF (Windows Presentation Foundation Unit 01)WPF (Windows Presentation Foundation Unit 01)
WPF (Windows Presentation Foundation Unit 01)
 
WCF (Windows Communication Foundation_Unit_01)
WCF (Windows Communication Foundation_Unit_01)WCF (Windows Communication Foundation_Unit_01)
WCF (Windows Communication Foundation_Unit_01)
 
VB.Net GUI Unit_01
VB.Net GUI Unit_01VB.Net GUI Unit_01
VB.Net GUI Unit_01
 
UML Unit 01
UML Unit 01UML Unit 01
UML Unit 01
 
Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01
 
J2ME Unit_01
J2ME Unit_01J2ME Unit_01
J2ME Unit_01
 
Data Structures and Algorithms Unit 01
Data Structures and Algorithms Unit 01Data Structures and Algorithms Unit 01
Data Structures and Algorithms Unit 01
 
C++ Unit_01
C++ Unit_01C++ Unit_01
C++ Unit_01
 
Advanced excel unit 01
Advanced excel unit 01Advanced excel unit 01
Advanced excel unit 01
 
C programming unit 01
C programming unit 01C programming unit 01
C programming unit 01
 

Recently uploaded

Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixingviprabot1
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage examplePragyanshuParadkar1
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 

Recently uploaded (20)

Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixing
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage example
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 

RDBMS_Unit 01

  • 1. Database is an integral part of an organization. Aspiring database developers should be able to efficiently design and implement databases. Knowledge of these will enable the developers to build robust database solutions. This module will help students to understand the concepts related to relational databases. Rationale
  • 2. In this session, you will learn to: Define a database management system Describe the types of data models Objectives
  • 3. What is a database? Database Management Systems
  • 4. A database is a collection of logically related data. Data means known facts, which are meaningful and can be recorded. For example: Database Management Systems (Contd.) Hard Disk Address Book
  • 5. Database Management Systems (DBMS) is the software required to perform the task of maintaining databases. Management of data involves: Defining structures for data storage. Providing methods for data manipulation, such as adding, editing, and deleting data. Providing data security against unauthorized access. Database Management Systems (Contd.)
  • 6. The main objectives of any DBMS are to: Provide an efficient and easy way to store, update, and retrieve data from a database. Manage information about users who interact with the DBMS, and the tasks that these users can perform on the data. Database Management Systems (Contd.)
  • 7. Now, let us understand the working of DBMS. Database Management Systems (Contd.)
  • 8. Database Management Systems (Contd.) Database DBMS Request for data Retrieved data returned as a result User system to extract information from the database
  • 9. What is a data model? Data Models
  • 10. Data Models (Contd.) A data model is a description of the data in a database. Data models can be broadly classified into the following categories: Object-based logical model: Focuses on describing the data, the relationship among the data, and any constraints defined. Record-based logical model: Focuses on specifying the logical structuring of the database.
  • 11. Let us understand the object-based logical model. Object-Based Logical Model
  • 12. The ER model: Views the real world as a collection of objects or entities and the relationship among them. Has a corresponding diagramming technique. Object-Based Logical Model (Contd.)
  • 13. The following diagram shows various components and depicts the relationship between them. Object-Based Logical Model (Contd.) Entities Relationship Attributes Attributes
  • 14. An entity: Is any object, place, person, or activity about which the data is recorded. Can be categorized as entity type and entity instance. In the ER model diagramming technique, entities are named and represented inside a box. For example: Object-Based Logical Model (Contd.)
  • 15. Entity can be of the following types: Dependent entity: Depends on another entity for existence. Is also called as a weak entity. Independent entity: Does not depend on any other entity for existence. Is also called as a regular entity. The following diagram consists of an entity, OFFERING, which is dependent on an entity, COURSE. Object-Based Logical Model (Contd.) Independent Entity Dependent Entity
  • 16. Chen defined a relationship as “an association among entities”. A relationship is depicted as a diamond with the name of the relationship type. For example: Object-Based Logical Model (Contd.) Relationship
  • 17. The following diagram represents the association of an entity with itself. Object-Based Logical Model (Contd.) STUDENT SEMINAR An entity associating with itself can be a student giving a seminar presentation to other students.
  • 18. The following diagram represents multiple relationships between the entities, TEACHER and STUDENT. Object-Based Logical Model (Contd.)
  • 19. The following statement has been extracted from a case presented by a manufacturer regarding the maintenance of their data: “A supplier ships certain parts”. Identify the entities mentioned in this statement, and their relationship. Draw a diagram depicting the relationship. Just a minute Solution: Entities: SUPPLIER, PARTS Relationship: SHIP or SUPPLIES
  • 20. There are three types of relationships: One-to-one One-to-many (or Many-to-one) Many-to-many Object-Based Logical Model (Contd.)
  • 21. The following diagram represents the one-to-one relationship between DEPARTMENT and DEPARTMENT HEAD. Object-Based Logical Model (Contd.) For a particular DEPARTMENT there can be only one DEPARTMENT HEAD.
  • 22. The following diagram represents the many-to-one relationship between STUDENT and MAJOR. Object-Based Logical Model (Contd.) A STUDENT can MAJOR in only one course, but many STUDENTs can register for a given MAJOR course.
  • 23. The following diagram represents the many-to-many relationship between STUDENT and COURSE. Object-Based Logical Model (Contd.) A STUDENT can take many COURSEs and many STUDENTs can register for a given COURSE.
  • 24. What do the following ER diagrams represent? Just a minute Solution: Many students can work on many projects. Many employees belong to only one department.
  • 25. Consider the following statement of a manufacturing company: “A supplier supplies certain parts. A particular part is not necessarily supplied by only one supplier. No supplier supplies only a single part.” What type of relationship is this? Draw a diagram to depict the relationship. Just a minute Solution: Many-to-many relationship
  • 26. An attribute: Is a property of a given entity. Is depicted as ellipses, labeled with the name of the property. The following diagram shows the various attributes of the entity, STUDENT. Object-Based Logical Model (Contd.)
  • 27. A manufacturer needs to maintain the following details about the supplier: Name Address Credit status Assigned code number Draw a diagram to depict this information. Just a minute Solution:
  • 28. A subtype: Is a subset of another entity. Is always dependent on the supertype for its existence. The attributes of a supertype apply to all of its subtypes. Object-Based Logical Model (Contd.)
  • 29. The following diagram shows the relationship between supertype (COURSE) and subtypes (STANDLONE and SEMESTER). Object-Based Logical Model (Contd.) The supertype is connected to the relationship with a line containing a crossbar.
  • 30. There are two types of suppliers. One type of supplier allows credit, while the other type insists on payment in cash before delivery. The manufacturer wishes to maintain separate information on these two types of suppliers. For the credit supplier, “credit period” and “credit limit” have to be recorded. For the cash supplier, “date of payment” has to be stored. Represent this information diagrammatically. Just a minute Solution:
  • 31. In this session, you learned that: Data models can be classified as: Object-based logical model Record-based logical model In the ER diagramming technique: Entities are represented as rectangles. Relationships are represented as diamonds. Attributes are represented as ellipses. Relationships, whether many-to-many, one-to-many, or one- to-one are represented symbolically. Weak entities are represented by double-lined boxes. Subtypes are connected to the supertype by an unnamed relationship, marked with a crossbar on top. Summary

Editor's Notes

  1. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  2. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  3. You can summarize the session by running through the summary given in SG. In addition, you can also ask students summarize what they have learnt in this session.
  4. You can summarize the session by running through the summary given in SG. In addition, you can also ask students summarize what they have learnt in this session.
  5. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  6. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  7. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  8. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  9. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  10. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  11. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  12. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  13. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  14. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  15. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  16. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  17. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  18. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  19. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  20. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  21. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  22. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  23. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  24. Student already have learnt about type 2 SCDs in Module I. Therefore, you can start this topic by asking the following questions to students: What are type 2 SCDs? Given an example to explain type 2 SCDs. This will recapitulate what they have learnt about type 2 SCD in Module 1. Now explain the strategy to update the data into these dimension tables with help the example given in SG. After explaining the examples, you can ask students to think of an example of a type 2 SCD and then tell the strategy to update the data into this dimension table.
  25. You can summarize the session by running through the summary given in SG. In addition, you can also ask students summarize what they have learnt in this session.