SlideShare a Scribd company logo
RELATIONAL MODEL
OF DATABASES AND
OTHER CONCEPTS OF
DATABASES​
BY EDWIN JACOB, PRANAV AND KARTHIK SUNDARMANI
Database Model
• A Database model defines the logical design and structure of a database and
defines how data will be stored, accessed and updated in a database
management system. The various types of database models are
• Hierarchical Model
• Network Model
• Relational Model
Relational Model in DBMS
• Relational Model was proposed by E.F. Codd to model data in the form of relations or tables.
• The model is comprised of rows and columns that use SQL as a query language for
maintaining and querying the databases.
• The basic structure of data in relational model is tables.
• Tables are also known as relations in relational model.
• Some popular relational data base management systems software's are
• DB2 And Informix Dyanamic Server- IBM
• Oracle And RDB – Oracle
• SQL Server And Access - Microsoft
Benefits and Challenges of the Relational
Model
• Databases that use the relational model have advantages over those that use
other models. These include simplicity of organization, ease of creation, ease of
data retrieval, built-in data integrity, flexibility of queries (including the fact that
programmers can write queries that weren’t anticipated by the database
designer), and less data redundancy (due to data normalization).
• However, o system is perfect. The relational model falls short in scalability,
difficulty of setup, and slower searches and queries when compared to other
database models.
Why do we need a Relational Database Model?
• Database Management System is software that permits the user to create, define, manage and
control the functions of the database.
• For better understanding, the Relational database model is used as an extension of the database
lying under the relational values. The RDBMS is entirely based on the relational model broadly
deployed in many applications.
• It is a common choice for information storage in a database especially in maintaining financial
records, logistics data, manufacturing products, personnel data, and so on. It replaced the
legacy of hierarchical databases and network databases because of its simple implementation
and administration features.
• Initially, RDBMS faced many failures but after many advancements it became a popular hit
and applied in many reliable applications.
IMPORTANT TERMINOLOGIES
• Attribute: Each column in a table is called Attributes. Attributes are the
properties that define a relation.
• Tuple: Each row in the relation is known as tuple.
• Degree: The number of attributes in the relation is known as degree of the
relation.
• Cardinality: The number of tuples in a relation is known as cardinality.
• Tables: Tables are stored along with entities.
Example : Historical Bridge Work Relation
• consider the relation which might record historical experience with different types of bridges
accumulated by a particular agency. The actual instances or rows of data are hypothetical. The
attributes of this relation are:
• PROJECT NUMBER - a 6-digit code identifying the particular project.
• TYPE OF BRIDGE - a text field describing the bridge type. (For retrieval purposes, a numerical
code might also be used to describe bridge type to avoid any differences in terminology to
describe similar bridges).
• LOCATION - The location of the project.
• CROSSING - What the bridge crosses over, eg. a river.
• SITE CONDITIONS - A brief description of the site peculiarities.
• ERECTION TIME - Time required to erect a bridge, in months.
• SPAN - Span of the bridge in feet.
• DATE - Year of bridge completion.
• ACTUAL-ESTIMATED COSTS - Difference of actual from estimated costs.
• These attributes could be used to answer a variety of questions concerning
construction experience useful during preliminary planning.
Cont….
• As an example, suppose that a bridge is to be built with a span of 250 feet, located in Pittsburgh PA, and crossing a
river with limestone sub-strata. In initial or preliminary planning, a designer might query the database four
separate times as follows:
• SELECT from BRIDGEWORK where SPAN > 200 and SPAN < 300 and where CROSSING = "river"
• SELECT from BRIDGEWORK where SPAN > 200 and SPAN < 300 and where SITE CONDITIONS = "Limestone"
• SELECT from BRIDGEWORK where TYPE OF BRIDGE = "Steel Plate Girder" and LOCATION = "PA"
• SELECT from BRIDGEWORK where SPAN < 300 and SPAN > 200 and ESTIMATED LESS ACTUAL COST <
100,000.
• Each SELECT operation would yield the bridge examples in the database which corresponds to the desired
selection criteria. In practice, an input/output interpreter program should be available to translate these inquiries to
and from the DBM and an appropriate problem oriented language.
Cont….
• The four queries may represent subsequent thoughts of a designer faced with
these problem conditions. He or she may first ask, "What experience have we
had with bridges of this span over rivers?" "What experience have we had with
bridges of this span with these site conditions? What is our experience with steel
girder bridges in Pennsylvania? For bridges of this span, how many and which
were erected without a sizable cost overrun? We could pose many more
questions of this general type using only the small data table.
Other Conceptual Models of Databases
• While the relational model offers a considerable amount of flexibility and
preserves considerable efficiency, there are several alternative models for
organizing databases,
• Hierarchical model
• Network model
• AI based model
Hierarchical Database Model
• The hierarchical model is a tree structure in which information is organized as
branches and nodes from a particular base.
• As an example Given below, hierarchical structure for rented equipment costs. In
this case, each piece of equipment belongs to a particular supplier and has a cost
which might vary by the duration of use. To find the cost of a particular piece of
equipment from a particular supplier, a query would first find the supplier, then
the piece of equipment and then the relevant price.
Example 1
• The hierarchical model has the characteristic that each item
has a single predecessor and a variable number of
subordinate data items.
• This structure is natural for many applications, such as the
equipment cost information described above. However, it
might be necessary to construct similar hierarchies for each
project to record the equipment used or for each piece of
equipment to record possible suppliers.
• Otherwise, generating these lists of assignments from the
database illustrated in the Figure would be difficult.
• For example, finding the least expensive supplier of a
crane might involve searching every supplier and every
equipment node in the database to find all crane prices.
Example 2
• Let us assume that we have a main directory
which contains other subdirectories. Each
subdirectory contains more files and directories.
Each directory or file can be in one directory only
i.e. it has only one parent.
• Here A is the main directory i.e. the root
node. B1 and B2 are their child or subdirectories.
B1 and B2 also have two children C1, C2 and C2,
C3 respectively. They may be directories or other
files. This depicts one- to- many relationships.
Advantages
• Promotes data sharing.
• It is conceptually simple due to the parent-child relationship.
• Database security is enforced.
• Efficient with 1: N relationships.
• A clear chain of command or authority.
• Increases specialization.
• High performance.
• Clear results.
Cont….
• A user can retrieve data very quickly due to the presence of explicit links
between the table structures.
• The referential integrity is built in and automatically enforced due to which a
record in a child table must be linked to an existing record in a parent table,
along with that if a record deleted in the parent table then that will cause all
associated records in the child table to be deleted as well.
Disadvantages
• When a user needs to store a record in a child table that is currently unrelated to
any record in a parent table, it gets difficulty in recording and user must record
an additional entry in the parent table.
• This type of database cannot support complex relationships, and there is also a
problem of redundancy, which can result in producing inaccurate information
due to the inconsistent recording of data at various sites.
Cont….
• Change in structure leads to change in all application programs.
• M: N relationship is not supported.
• No data manipulation or data definition language.
• Lack of standards.
• Poor flexibility
• Communication barriers
• Organizational Disunity.
• Rigid structure
Network Model
• This model was formalized by the Database Task group in the 1960s. This model is the
generalization of the hierarchical model.
• This model can consist of multiple parent segments and these segments are grouped
as levels but there exists a logical association between the segments belonging to any
level. Mostly, there exists a many-to-many logical association between any of the two
segments.
• We called graphs the logical associations between the segments. Therefore, this model
replaces the hierarchical tree with a graph-like structure, and with that, there can more
general connections among different nodes.
• It can have M: N relations i.e, many-to-many which allows a record to have more than
one parent segment.
Cont…
• Here, a relationship is called a set, and each set is made up of at least 2 types of
record which are given below:
i. An owner record that is the same as of parent in the hierarchical model.
ii. A member record that is the same as of child in the hierarchical model.
Example 1
In the above figure, member TWO has only one owner ‘ONE’ whereas member FIVE has
two owners i.e, TWO and THREE. Here, each link between the two record types represents
1 : M relationship between them. This model consists of both lateral and top-down
connections between the nodes. Therefore, it allows 1: 1, 1 : M, M : N relationships among
the given entities which helps in avoiding data redundancy problems as it supports
multiple paths to the same record.
Example 2
• In this figure, we can see that the
subject is the child class and student
and degree are the parent classes.
• So, the subject has two parent classes.
STUDENT has one child and the
Degree class also have one child.
• This kind of relationship among
entities represents the network
model.
Advantages
• It is fast data access with a network model.
• The network model allows creating more complex and more strong queries as
compared to the database with a hierarchical database model. A user can execute
a variety of database queries when selecting the network model.
• Sometimes, the network model is used to build computer network systems.
• The network model is considered as an enhancement to the hierarchical database
model.
Disadvantages
• The network model is a very complex database model, so the user must be very
familiar with the overall structure of the database.
• Updating the database is a quite difficult and boring task. We need the help of
the application programs that are being used to navigate the data.
Network model VS Hierarchical model VS Relational model:
Network Data Model Hierarchical Data Model Relational Data Model
Pointers or links are used to
express the relationship between
records.
The relationship between
records is of the parent-child
type
A relation(that contains a key for
each record involved in the
relationship) is used to represent
the relationship between
records.
It is possible to implement the
Many to many relationships.
Many to many relationships
cannot be expressed in
Hierarchical Data Model
It is easy to implement Many to
many relationships.
No problem of inconsistency
exists in the Network model.
The data inconsistency is
possible when we update or
delete some records.
Its needs to maintain Data
integrity and consistency by
maintaining the database
Normalization
Network Data Model Hierarchical Data Model Relational Data Model
Record relationship implementation
is quite complex due to the use of
pointers.
The method of implementing the
record relationships is;
· Simple
· Natural
· straightforward
The use of a key or composite key
field plays a role in making the
process easy for the implementation
of relationships.
In-Network model record relations
are physical.
The record relations are physical in
the Hierarchical data model.
Data is organized logically in the
form of rows and columns and
stored in the table.
The relational model does not
maintain a physical connection
among records.
Searching for a record is easy since
there are multiple access paths to a
data element.
Searching for a record is very
difficult because we can retrieve a
child only after going through its
parent record.
A unique, indexed key field is used
to search for a data element in a
relation.
The network model is useful for
representing such records that have
many to many relationships.
The hierarchical Data Model is
useful only when there is some
hierarchical character in the
database.
The relational model is useful for
representing most of the real-world
objects and relationships among the
objects.
AI database model - frame data structure
• Frame data structure used to represent a building design element. This frame describes the
location, type, cost, material, scheduled work time, etc. for a particular concrete footing.
• A frame is a general purpose data representation scheme in which information is arranged
in slots within a named frame.
• Slots may contain lists, values, text, procedural statements (such as calculation rules),
pointers or other entities. Frames can be inter-connected so that information may
be inherited between slots. The Figure illustrates a set of inter-connected frames used to
describe a building design and construction plan.
• Object oriented data representation is similar in that very flexible local arrangements of data
are permitted. While these types of data storage organizations are active areas of research,
commercial database systems based on these organizations are not yet available.
THANK YOU

More Related Content

What's hot

open system interconnection
open system interconnectionopen system interconnection
open system interconnection
Ruchi Maurya
 
OSI model
OSI modelOSI model
OSI model
AnindyaNag5
 
Osi model
Osi modelOsi model
OSI Network model ppt
OSI Network model pptOSI Network model ppt
OSI Network model pptextraganesh
 
Relational algebra in dbms
Relational algebra in dbmsRelational algebra in dbms
Relational algebra in dbms
Vignesh Saravanan
 
Relational algebra in DBMS
Relational algebra in DBMSRelational algebra in DBMS
Relational algebra in DBMS
Arafat Hossan
 
DT-08-Hashing.PPTX
DT-08-Hashing.PPTXDT-08-Hashing.PPTX
DT-08-Hashing.PPTX
BhuvanBalan1
 
Relational algebra ppt
Relational algebra pptRelational algebra ppt
Relational algebra ppt
GirdharRatne
 
Bridge
BridgeBridge
Computer Network
Computer NetworkComputer Network
Computer Network
Shripal Oswal
 
Network Administrator Project PowerPoint
Network Administrator Project PowerPointNetwork Administrator Project PowerPoint
Network Administrator Project PowerPointSteven Washington
 
Dbms 11: Relational Algebra
Dbms 11: Relational AlgebraDbms 11: Relational Algebra
Dbms 11: Relational Algebra
Amiya9439793168
 
Mac addresses(media access control)
Mac addresses(media access control)Mac addresses(media access control)
Mac addresses(media access control)Ismail Mukiibi
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalizationdaxesh chauhan
 
Joins in dbms and types
Joins in dbms and typesJoins in dbms and types
Joins in dbms and types
university of Gujrat, pakistan
 
Ch1- Introduction to dbms
Ch1- Introduction to dbmsCh1- Introduction to dbms
Ch1- Introduction to dbms
Shakila Mahjabin
 
joins in database
 joins in database joins in database
joins in database
Sultan Arshad
 
Fundamentals of Database Systems 6th Edition Elmasri Solutions Manual
Fundamentals of Database Systems 6th Edition Elmasri Solutions ManualFundamentals of Database Systems 6th Edition Elmasri Solutions Manual
Fundamentals of Database Systems 6th Edition Elmasri Solutions Manual
tefimetib
 
STRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIESSTRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIES
VENNILAV6
 

What's hot (20)

open system interconnection
open system interconnectionopen system interconnection
open system interconnection
 
OSI model
OSI modelOSI model
OSI model
 
Osi model
Osi modelOsi model
Osi model
 
OSI Network model ppt
OSI Network model pptOSI Network model ppt
OSI Network model ppt
 
Relational algebra in dbms
Relational algebra in dbmsRelational algebra in dbms
Relational algebra in dbms
 
Relational algebra in DBMS
Relational algebra in DBMSRelational algebra in DBMS
Relational algebra in DBMS
 
DT-08-Hashing.PPTX
DT-08-Hashing.PPTXDT-08-Hashing.PPTX
DT-08-Hashing.PPTX
 
Relational algebra ppt
Relational algebra pptRelational algebra ppt
Relational algebra ppt
 
SQL Views
SQL ViewsSQL Views
SQL Views
 
Bridge
BridgeBridge
Bridge
 
Computer Network
Computer NetworkComputer Network
Computer Network
 
Network Administrator Project PowerPoint
Network Administrator Project PowerPointNetwork Administrator Project PowerPoint
Network Administrator Project PowerPoint
 
Dbms 11: Relational Algebra
Dbms 11: Relational AlgebraDbms 11: Relational Algebra
Dbms 11: Relational Algebra
 
Mac addresses(media access control)
Mac addresses(media access control)Mac addresses(media access control)
Mac addresses(media access control)
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
 
Joins in dbms and types
Joins in dbms and typesJoins in dbms and types
Joins in dbms and types
 
Ch1- Introduction to dbms
Ch1- Introduction to dbmsCh1- Introduction to dbms
Ch1- Introduction to dbms
 
joins in database
 joins in database joins in database
joins in database
 
Fundamentals of Database Systems 6th Edition Elmasri Solutions Manual
Fundamentals of Database Systems 6th Edition Elmasri Solutions ManualFundamentals of Database Systems 6th Edition Elmasri Solutions Manual
Fundamentals of Database Systems 6th Edition Elmasri Solutions Manual
 
STRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIESSTRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIES
 

Similar to RELATIONAL MODEL OF DATABASES AND OTHER CONCEPTS OF DATABASES​

DBMS - Introduction.ppt
DBMS - Introduction.pptDBMS - Introduction.ppt
DBMS - Introduction.ppt
SATHYABAMAMADHANKUMA
 
Mis assignment (database)
Mis assignment (database)Mis assignment (database)
Mis assignment (database)
Muhammad Sultan Bhatti
 
0001 introduction to database management system
0001 introduction to database management system0001 introduction to database management system
0001 introduction to database management system
Jugdambay S
 
NoSql
NoSqlNoSql
Week 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxWeek 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptx
Riannel Tecson
 
Module 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptxModule 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptx
SoniaDevi15
 
NoSQL Fundamentals PowerPoint Presentation
NoSQL Fundamentals PowerPoint PresentationNoSQL Fundamentals PowerPoint Presentation
NoSQL Fundamentals PowerPoint Presentation
AnweshMishra21
 
Chapter-2 Database System Concepts and Architecture
Chapter-2 Database System Concepts and ArchitectureChapter-2 Database System Concepts and Architecture
Chapter-2 Database System Concepts and Architecture
Kunal Anand
 
DIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptxDIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptx
Kavya990096
 
Dbms
DbmsDbms
(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)
Dr. Mazin Mohamed alkathiri
 
DBMS
DBMS DBMS
DATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEMDATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM
Mahmud Hasan Tanvir
 
Data Models
Data ModelsData Models
Data Models
RituBhargava7
 
Data models
Data modelsData models
Data models
RituBhargava7
 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2Mukund Trivedi
 
dbms introduction.pptx
dbms introduction.pptxdbms introduction.pptx
dbms introduction.pptx
ATISHAYJAIN847270
 
DBMS-Unit-1.pptx
DBMS-Unit-1.pptxDBMS-Unit-1.pptx
DBMS-Unit-1.pptx
Bhavya304221
 
Presentation On NoSQL Databases
Presentation On NoSQL DatabasesPresentation On NoSQL Databases
Presentation On NoSQL Databases
Abiral Gautam
 
Complete first chapter rdbm 17332
Complete first chapter rdbm 17332Complete first chapter rdbm 17332
Complete first chapter rdbm 17332
Tushar Wagh
 

Similar to RELATIONAL MODEL OF DATABASES AND OTHER CONCEPTS OF DATABASES​ (20)

DBMS - Introduction.ppt
DBMS - Introduction.pptDBMS - Introduction.ppt
DBMS - Introduction.ppt
 
Mis assignment (database)
Mis assignment (database)Mis assignment (database)
Mis assignment (database)
 
0001 introduction to database management system
0001 introduction to database management system0001 introduction to database management system
0001 introduction to database management system
 
NoSql
NoSqlNoSql
NoSql
 
Week 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxWeek 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptx
 
Module 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptxModule 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptx
 
NoSQL Fundamentals PowerPoint Presentation
NoSQL Fundamentals PowerPoint PresentationNoSQL Fundamentals PowerPoint Presentation
NoSQL Fundamentals PowerPoint Presentation
 
Chapter-2 Database System Concepts and Architecture
Chapter-2 Database System Concepts and ArchitectureChapter-2 Database System Concepts and Architecture
Chapter-2 Database System Concepts and Architecture
 
DIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptxDIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptx
 
Dbms
DbmsDbms
Dbms
 
(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)
 
DBMS
DBMS DBMS
DBMS
 
DATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEMDATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM
 
Data Models
Data ModelsData Models
Data Models
 
Data models
Data modelsData models
Data models
 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2
 
dbms introduction.pptx
dbms introduction.pptxdbms introduction.pptx
dbms introduction.pptx
 
DBMS-Unit-1.pptx
DBMS-Unit-1.pptxDBMS-Unit-1.pptx
DBMS-Unit-1.pptx
 
Presentation On NoSQL Databases
Presentation On NoSQL DatabasesPresentation On NoSQL Databases
Presentation On NoSQL Databases
 
Complete first chapter rdbm 17332
Complete first chapter rdbm 17332Complete first chapter rdbm 17332
Complete first chapter rdbm 17332
 

More from EdwinJacob5

Demolition of building
Demolition of buildingDemolition of building
Demolition of building
EdwinJacob5
 
Construction development in Energy & Infrastructures
Construction development in Energy & InfrastructuresConstruction development in Energy & Infrastructures
Construction development in Energy & Infrastructures
EdwinJacob5
 
Comparison of boot and bolt modes of Construction
Comparison of boot and bolt modes of ConstructionComparison of boot and bolt modes of Construction
Comparison of boot and bolt modes of Construction
EdwinJacob5
 
Value Engineering
Value EngineeringValue Engineering
Value Engineering
EdwinJacob5
 
Fire safety decision tree
Fire safety decision treeFire safety decision tree
Fire safety decision tree
EdwinJacob5
 
Chennai urban form
Chennai urban formChennai urban form
Chennai urban form
EdwinJacob5
 
Quality control inspection reports and outcomes wrt contract management
Quality control inspection reports and outcomes wrt contract managementQuality control inspection reports and outcomes wrt contract management
Quality control inspection reports and outcomes wrt contract management
EdwinJacob5
 

More from EdwinJacob5 (7)

Demolition of building
Demolition of buildingDemolition of building
Demolition of building
 
Construction development in Energy & Infrastructures
Construction development in Energy & InfrastructuresConstruction development in Energy & Infrastructures
Construction development in Energy & Infrastructures
 
Comparison of boot and bolt modes of Construction
Comparison of boot and bolt modes of ConstructionComparison of boot and bolt modes of Construction
Comparison of boot and bolt modes of Construction
 
Value Engineering
Value EngineeringValue Engineering
Value Engineering
 
Fire safety decision tree
Fire safety decision treeFire safety decision tree
Fire safety decision tree
 
Chennai urban form
Chennai urban formChennai urban form
Chennai urban form
 
Quality control inspection reports and outcomes wrt contract management
Quality control inspection reports and outcomes wrt contract managementQuality control inspection reports and outcomes wrt contract management
Quality control inspection reports and outcomes wrt contract management
 

Recently uploaded

Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 

Recently uploaded (20)

Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 

RELATIONAL MODEL OF DATABASES AND OTHER CONCEPTS OF DATABASES​

  • 1. RELATIONAL MODEL OF DATABASES AND OTHER CONCEPTS OF DATABASES​ BY EDWIN JACOB, PRANAV AND KARTHIK SUNDARMANI
  • 2. Database Model • A Database model defines the logical design and structure of a database and defines how data will be stored, accessed and updated in a database management system. The various types of database models are • Hierarchical Model • Network Model • Relational Model
  • 3. Relational Model in DBMS • Relational Model was proposed by E.F. Codd to model data in the form of relations or tables. • The model is comprised of rows and columns that use SQL as a query language for maintaining and querying the databases. • The basic structure of data in relational model is tables. • Tables are also known as relations in relational model. • Some popular relational data base management systems software's are • DB2 And Informix Dyanamic Server- IBM • Oracle And RDB – Oracle • SQL Server And Access - Microsoft
  • 4. Benefits and Challenges of the Relational Model • Databases that use the relational model have advantages over those that use other models. These include simplicity of organization, ease of creation, ease of data retrieval, built-in data integrity, flexibility of queries (including the fact that programmers can write queries that weren’t anticipated by the database designer), and less data redundancy (due to data normalization). • However, o system is perfect. The relational model falls short in scalability, difficulty of setup, and slower searches and queries when compared to other database models.
  • 5. Why do we need a Relational Database Model? • Database Management System is software that permits the user to create, define, manage and control the functions of the database. • For better understanding, the Relational database model is used as an extension of the database lying under the relational values. The RDBMS is entirely based on the relational model broadly deployed in many applications. • It is a common choice for information storage in a database especially in maintaining financial records, logistics data, manufacturing products, personnel data, and so on. It replaced the legacy of hierarchical databases and network databases because of its simple implementation and administration features. • Initially, RDBMS faced many failures but after many advancements it became a popular hit and applied in many reliable applications.
  • 6. IMPORTANT TERMINOLOGIES • Attribute: Each column in a table is called Attributes. Attributes are the properties that define a relation. • Tuple: Each row in the relation is known as tuple. • Degree: The number of attributes in the relation is known as degree of the relation. • Cardinality: The number of tuples in a relation is known as cardinality. • Tables: Tables are stored along with entities.
  • 7. Example : Historical Bridge Work Relation • consider the relation which might record historical experience with different types of bridges accumulated by a particular agency. The actual instances or rows of data are hypothetical. The attributes of this relation are: • PROJECT NUMBER - a 6-digit code identifying the particular project. • TYPE OF BRIDGE - a text field describing the bridge type. (For retrieval purposes, a numerical code might also be used to describe bridge type to avoid any differences in terminology to describe similar bridges). • LOCATION - The location of the project. • CROSSING - What the bridge crosses over, eg. a river. • SITE CONDITIONS - A brief description of the site peculiarities.
  • 8. • ERECTION TIME - Time required to erect a bridge, in months. • SPAN - Span of the bridge in feet. • DATE - Year of bridge completion. • ACTUAL-ESTIMATED COSTS - Difference of actual from estimated costs. • These attributes could be used to answer a variety of questions concerning construction experience useful during preliminary planning.
  • 9. Cont…. • As an example, suppose that a bridge is to be built with a span of 250 feet, located in Pittsburgh PA, and crossing a river with limestone sub-strata. In initial or preliminary planning, a designer might query the database four separate times as follows: • SELECT from BRIDGEWORK where SPAN > 200 and SPAN < 300 and where CROSSING = "river" • SELECT from BRIDGEWORK where SPAN > 200 and SPAN < 300 and where SITE CONDITIONS = "Limestone" • SELECT from BRIDGEWORK where TYPE OF BRIDGE = "Steel Plate Girder" and LOCATION = "PA" • SELECT from BRIDGEWORK where SPAN < 300 and SPAN > 200 and ESTIMATED LESS ACTUAL COST < 100,000. • Each SELECT operation would yield the bridge examples in the database which corresponds to the desired selection criteria. In practice, an input/output interpreter program should be available to translate these inquiries to and from the DBM and an appropriate problem oriented language.
  • 10. Cont…. • The four queries may represent subsequent thoughts of a designer faced with these problem conditions. He or she may first ask, "What experience have we had with bridges of this span over rivers?" "What experience have we had with bridges of this span with these site conditions? What is our experience with steel girder bridges in Pennsylvania? For bridges of this span, how many and which were erected without a sizable cost overrun? We could pose many more questions of this general type using only the small data table.
  • 11. Other Conceptual Models of Databases • While the relational model offers a considerable amount of flexibility and preserves considerable efficiency, there are several alternative models for organizing databases, • Hierarchical model • Network model • AI based model
  • 12. Hierarchical Database Model • The hierarchical model is a tree structure in which information is organized as branches and nodes from a particular base. • As an example Given below, hierarchical structure for rented equipment costs. In this case, each piece of equipment belongs to a particular supplier and has a cost which might vary by the duration of use. To find the cost of a particular piece of equipment from a particular supplier, a query would first find the supplier, then the piece of equipment and then the relevant price.
  • 13. Example 1 • The hierarchical model has the characteristic that each item has a single predecessor and a variable number of subordinate data items. • This structure is natural for many applications, such as the equipment cost information described above. However, it might be necessary to construct similar hierarchies for each project to record the equipment used or for each piece of equipment to record possible suppliers. • Otherwise, generating these lists of assignments from the database illustrated in the Figure would be difficult. • For example, finding the least expensive supplier of a crane might involve searching every supplier and every equipment node in the database to find all crane prices.
  • 14. Example 2 • Let us assume that we have a main directory which contains other subdirectories. Each subdirectory contains more files and directories. Each directory or file can be in one directory only i.e. it has only one parent. • Here A is the main directory i.e. the root node. B1 and B2 are their child or subdirectories. B1 and B2 also have two children C1, C2 and C2, C3 respectively. They may be directories or other files. This depicts one- to- many relationships.
  • 15. Advantages • Promotes data sharing. • It is conceptually simple due to the parent-child relationship. • Database security is enforced. • Efficient with 1: N relationships. • A clear chain of command or authority. • Increases specialization. • High performance. • Clear results.
  • 16. Cont…. • A user can retrieve data very quickly due to the presence of explicit links between the table structures. • The referential integrity is built in and automatically enforced due to which a record in a child table must be linked to an existing record in a parent table, along with that if a record deleted in the parent table then that will cause all associated records in the child table to be deleted as well.
  • 17. Disadvantages • When a user needs to store a record in a child table that is currently unrelated to any record in a parent table, it gets difficulty in recording and user must record an additional entry in the parent table. • This type of database cannot support complex relationships, and there is also a problem of redundancy, which can result in producing inaccurate information due to the inconsistent recording of data at various sites.
  • 18. Cont…. • Change in structure leads to change in all application programs. • M: N relationship is not supported. • No data manipulation or data definition language. • Lack of standards. • Poor flexibility • Communication barriers • Organizational Disunity. • Rigid structure
  • 19. Network Model • This model was formalized by the Database Task group in the 1960s. This model is the generalization of the hierarchical model. • This model can consist of multiple parent segments and these segments are grouped as levels but there exists a logical association between the segments belonging to any level. Mostly, there exists a many-to-many logical association between any of the two segments. • We called graphs the logical associations between the segments. Therefore, this model replaces the hierarchical tree with a graph-like structure, and with that, there can more general connections among different nodes. • It can have M: N relations i.e, many-to-many which allows a record to have more than one parent segment.
  • 20. Cont… • Here, a relationship is called a set, and each set is made up of at least 2 types of record which are given below: i. An owner record that is the same as of parent in the hierarchical model. ii. A member record that is the same as of child in the hierarchical model.
  • 21. Example 1 In the above figure, member TWO has only one owner ‘ONE’ whereas member FIVE has two owners i.e, TWO and THREE. Here, each link between the two record types represents 1 : M relationship between them. This model consists of both lateral and top-down connections between the nodes. Therefore, it allows 1: 1, 1 : M, M : N relationships among the given entities which helps in avoiding data redundancy problems as it supports multiple paths to the same record.
  • 22. Example 2 • In this figure, we can see that the subject is the child class and student and degree are the parent classes. • So, the subject has two parent classes. STUDENT has one child and the Degree class also have one child. • This kind of relationship among entities represents the network model.
  • 23. Advantages • It is fast data access with a network model. • The network model allows creating more complex and more strong queries as compared to the database with a hierarchical database model. A user can execute a variety of database queries when selecting the network model. • Sometimes, the network model is used to build computer network systems. • The network model is considered as an enhancement to the hierarchical database model.
  • 24. Disadvantages • The network model is a very complex database model, so the user must be very familiar with the overall structure of the database. • Updating the database is a quite difficult and boring task. We need the help of the application programs that are being used to navigate the data.
  • 25. Network model VS Hierarchical model VS Relational model: Network Data Model Hierarchical Data Model Relational Data Model Pointers or links are used to express the relationship between records. The relationship between records is of the parent-child type A relation(that contains a key for each record involved in the relationship) is used to represent the relationship between records. It is possible to implement the Many to many relationships. Many to many relationships cannot be expressed in Hierarchical Data Model It is easy to implement Many to many relationships. No problem of inconsistency exists in the Network model. The data inconsistency is possible when we update or delete some records. Its needs to maintain Data integrity and consistency by maintaining the database Normalization
  • 26. Network Data Model Hierarchical Data Model Relational Data Model Record relationship implementation is quite complex due to the use of pointers. The method of implementing the record relationships is; · Simple · Natural · straightforward The use of a key or composite key field plays a role in making the process easy for the implementation of relationships. In-Network model record relations are physical. The record relations are physical in the Hierarchical data model. Data is organized logically in the form of rows and columns and stored in the table. The relational model does not maintain a physical connection among records. Searching for a record is easy since there are multiple access paths to a data element. Searching for a record is very difficult because we can retrieve a child only after going through its parent record. A unique, indexed key field is used to search for a data element in a relation. The network model is useful for representing such records that have many to many relationships. The hierarchical Data Model is useful only when there is some hierarchical character in the database. The relational model is useful for representing most of the real-world objects and relationships among the objects.
  • 27. AI database model - frame data structure • Frame data structure used to represent a building design element. This frame describes the location, type, cost, material, scheduled work time, etc. for a particular concrete footing. • A frame is a general purpose data representation scheme in which information is arranged in slots within a named frame. • Slots may contain lists, values, text, procedural statements (such as calculation rules), pointers or other entities. Frames can be inter-connected so that information may be inherited between slots. The Figure illustrates a set of inter-connected frames used to describe a building design and construction plan. • Object oriented data representation is similar in that very flexible local arrangements of data are permitted. While these types of data storage organizations are active areas of research, commercial database systems based on these organizations are not yet available.
  • 28.