SlideShare a Scribd company logo
Database Management System
(2130703)
Topic:- Relational Model
Prepared by- Vasava Aarti G
Roll no_6140
(I.T departmet)
1
Relational Model
Object Relational Model
Object Based data Model
Brief History of the Relational Model
2
 “A DBMS that manages data as collection of tables
in which all data relationships are represented by
common values in related tables.”
 “A DBMS that follows all the twelve rules of CODD
is called RDBMS”
3
4
Relational Database definition
All information must be represented explicitlyAll information must be represented explicitly
in one and only one way: as values in tables andin one and only one way: as values in tables and
each & every datum in the database must beeach & every datum in the database must be
accessible by specifying a table name, a columnaccessible by specifying a table name, a column
name, and a primary key.name, and a primary key.
5
Data about various entities and their relationships
are stored in a series of logical tables (also known as
relations).
A relation is a two-dimensional table with certain imposed
restrictions:
1. Each Row is unique: No duplicate row
2. Entries in any column have the same domain.
3. Each column has a unique name
4. Order of the columns or rows is irrelevant
5. Each entry in the table is single valued:
No group item, repeating group, or array is allowed.
PRINCIPLES OF RELATIONAL MODELPRINCIPLES OF RELATIONAL MODEL
Note: A domain is the set of all possible values an attribute may assume.
Example: Domain of Major= (Acct, Mktg, Mgmt, ISOM, Fina)
 Relational database: a set of relations.
Relation: made up of 2 parts:
– Schema : specifies name of relation, plus
name and type of each column.
• E.g. Students(sid: string, name: string, login: string,
age: integer, gpa: real)
– Instance : a table, with rows and columns.
•#rows = cardinality
•#fields = degree / arity
• Can think of a relation as a set of rows or tuples.
– i.e., all rows are distinct
6
 The Relational Model developed by Dr. E. F. Codd at IBM
in the late 1960s
 The model built on mathematical concepts, which
expounded in the famous work called "A Relational
Model of Data for Large Shared Databanks".
 At the core of the relational model is the concept of a
table (also called a relation) in which all data is stored.
 Records (horizontal rows also known as tuples) &
Fields (vertical columns also known as attributes).
 It is important to note that how or where the tables of data
are stored makes no difference.
 Table can be identified by a unique name.
 This is quite a bit different from the Hierarchical & Network
models in which the user had to have an understanding
of how the data was structured within the
database in order to retrieve, insert, update, or
delete records from the database.
7
Advantages:
 The data access methodology in relational
model is quite different from and better than the
earlier database models .
 Another benefit of the relational system is that it
provides extremely useful tools for database
administration.
 Meta-data (data about the table and field names
which form the database structure, access rights to
the database, integrity and data validation
rules etc).
 Thus everything within the relational model can be
stored in tables. This means that many relational
systems can use operations recursively in order
to provide information about the database.
8
9
TABLE (Relation)TABLE (Relation)
DegreeDegree
AttributesAttributes
CardinCardin
alityality
PrimaryPrimary
KeyKey
TuplesTuples
SupplierSupplier
DomainDomainDomainDomain
aa SNameSName QuantityQuantity CityCity
S1S1 KeyurKeyur 2020 AhmedabadAhmedabad
S2S2 VinayVinay 1010 SuratSurat
S3S3 ChiragChirag 4040 BarodaBaroda
S4S4 kevinkevin 3434 RajkotRajkot
S5S5 NayanNayan 2525 BhavnagarBhavnagar
10
Member of a relation type (set / table).Member of a relation type (set / table).
Tuples:Tuples:
Relation / Table Degree:Relation / Table Degree:
Attribute Value Set:Attribute Value Set:
Attribute Domain:Attribute Domain:
Attribute Name:Attribute Name:
Attribute (field):Attribute (field):
All attribute names must be unique within aAll attribute names must be unique within a
table / relation.table / relation.
A set of all possible values that can be attain byA set of all possible values that can be attain by
an attribute.an attribute.
Values currently contained in an attribute.Values currently contained in an attribute.
Number of attributes in a relation / table.Number of attributes in a relation / table.
Rows in a table / relation.Rows in a table / relation.
Cardinality:Cardinality: Number of tuples in a relation / table.Number of tuples in a relation / table.
11
sid Name Login age GPA
53666 Jones Jones@ca 18 3.4
53444 smith Smith@ecs 18 3.2
53777 Blake Blake@aa 19 3.8
• Cardinality = 3, arity = 5 , all rows distinct
• Do all values in each column of a relation
instance have to be distinct?
Student(studno,name,address)
Course(courseno,lecturer)
Student(123,Bloggs,Woolton)
(321,Jones,Owens)
Schema
Instance
12
Database SchemaDatabase Schema
The description of the database is calledThe description of the database is called
database schema. A database schema isdatabase schema. A database schema is
describe during database design and notdescribe during database design and not
expected to change frequently.expected to change frequently.
Schema DiagramSchema Diagram
Displayed schema is called schema diagram.Displayed schema is called schema diagram.
Each object in schema is called a schemaEach object in schema is called a schema
construct.construct.
13
Database instance (occurrence or state)Database instance (occurrence or state)
The data in a database at a particularThe data in a database at a particular
moment of time.moment of time.
Intension & ExtensionIntension & Extension
The schema is sometimes called theThe schema is sometimes called the
intension and a database instance is calledintension and a database instance is called
an extension of the schema.an extension of the schema.
CD_ID Title Artist Genre
1 The Wall Pink Floyd Rock
2 Blue Train John Coltrane Jazz
3 Requiem W.A. Mozart Classical
14
Field
Record
Table
15
Tuple:
 The actual data values for the attributes of a relation
are stored in tuples, or rows, of the table.
 It is not necessary for a relation to have rows in order
to be a relation; even if no data exists for the relation
 The relation remains defined with its set of attributes
Attribute:
 The term attribute refers to characteristics.This
simply means that what the column contains will be
defined by the attribute of the column
16
EXAMPLES OF ATTRIBUTEEXAMPLES OF ATTRIBUTE
DOMAINSDOMAINS
17
18
 Built in data integrity
 Data consistency and accuracy
 Easy data retrieval and data sharing
 How and where the tables of data stored make no difference
 You can access child table with out accessing parent table.
 Non-navigational in nature
 Find the data on the basis of the data values themselves.
 One point data administration
 Controlling redundancy
 Data abstraction
 Provide security
 Data entry , update and deletion will be efficient.
 Changes to the of the database is somewhat self-
documenting.
 Support multiple users
19
20
DBMS RDBMS
The concepts of relationships is
missing in a DBMS. If it exits it is
very less.
It is based on the concept
Of relationships
Speed of operation is very slow Speed of operation is very Fast
Hardware and Software requirements
are minimum
Hardware and Software
requirements are High
Platform used is normally DOS Platform used can be any DOS,
UNIX,VAX,VMS, etc
Uses concept of a file Uses concept of table
DBMS normally use 3GL RDBMS normally use a 4GL
Examples are dBase, FOXBASE, etc Examples are ORACLE, INGRESS,
SQL Server 2000 etc
 •        Oracle
 •        Sybase
 •        Microsoft SQL Server
 •        Informix
 •        Ingress
 •        DB2
21
22
Country Capital
Italy Rome
India New Delhi
China Beijing
France Tokyo
Japan Paris
Country Currency
Italy Lira
India Rupee
China Quan
France Yen
Japan Francs
EXAMPES
23
Left Door Right Door Hood Roof
Handle Window Lock
Engine Body Chassis
Car
24
THANKYOU…
Ad

More Related Content

What's hot (20)

Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
Shakila Mahjabin
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
FUNCTION DEPENDENCY  AND TYPES & EXAMPLEFUNCTION DEPENDENCY  AND TYPES & EXAMPLE
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
Vraj Patel
 
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and AggregationDbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
BIT Durg
 
Data Models
Data ModelsData Models
Data Models
RituBhargava7
 
Relational Database Design
Relational Database DesignRelational Database Design
Relational Database Design
Archit Saxena
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
Damian T. Gordon
 
Advance database systems (part 1)
Advance database systems (part 1)Advance database systems (part 1)
Advance database systems (part 1)
Abdullah Khosa
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
madhav bansal
 
Relational algebra ppt
Relational algebra pptRelational algebra ppt
Relational algebra ppt
GirdharRatne
 
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NFNormalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Biplap Bhattarai
 
Data preprocessing
Data preprocessingData preprocessing
Data preprocessing
ankur bhalla
 
Bcnf
BcnfBcnf
Bcnf
baabtra.com - No. 1 supplier of quality freshers
 
Functional dependency
Functional dependencyFunctional dependency
Functional dependency
Dashani Rajapaksha
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
Hitesh Mohapatra
 
Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database Models
Murassa Gillani
 
DATABASE CONSTRAINTS
DATABASE CONSTRAINTSDATABASE CONSTRAINTS
DATABASE CONSTRAINTS
sunanditaAnand
 
Dbms architecture
Dbms architectureDbms architecture
Dbms architecture
Shubham Dwivedi
 
Data models
Data modelsData models
Data models
Usman Tariq
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
koolkampus
 
SQL Views
SQL ViewsSQL Views
SQL Views
baabtra.com - No. 1 supplier of quality freshers
 

Viewers also liked (13)

3. Relational Models in DBMS
3. Relational Models in DBMS3. Relational Models in DBMS
3. Relational Models in DBMS
koolkampus
 
4 the relational data model and relational database constraints
4 the relational data model and relational database constraints4 the relational data model and relational database constraints
4 the relational data model and relational database constraints
Kumar
 
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
Smriti Jain
 
CS3270 - DATABASE SYSTEM - Lecture (1)
CS3270 - DATABASE SYSTEM -  Lecture (1)CS3270 - DATABASE SYSTEM -  Lecture (1)
CS3270 - DATABASE SYSTEM - Lecture (1)
Dilawar Khan
 
MySQL GUI Administration
MySQL GUI AdministrationMySQL GUI Administration
MySQL GUI Administration
Jaime Crespo
 
MariaDB 10: The Complete Tutorial
MariaDB 10: The Complete TutorialMariaDB 10: The Complete Tutorial
MariaDB 10: The Complete Tutorial
Colin Charles
 
File and data base management
File and data base managementFile and data base management
File and data base management
Asad Ahmed
 
Dbms ii mca-ch4-relational model-2013
Dbms ii mca-ch4-relational model-2013Dbms ii mca-ch4-relational model-2013
Dbms ii mca-ch4-relational model-2013
Prosanta Ghosh
 
Normalization
NormalizationNormalization
Normalization
ochesing
 
Dbms
DbmsDbms
Dbms
sevtap87
 
Bazat e te dhenave
Bazat e te dhenaveBazat e te dhenave
Bazat e te dhenave
Menaxherat
 
Data Base Management System
Data Base Management SystemData Base Management System
Data Base Management System
Dr. C.V. Suresh Babu
 
Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)
Jargalsaikhan Alyeksandr
 
3. Relational Models in DBMS
3. Relational Models in DBMS3. Relational Models in DBMS
3. Relational Models in DBMS
koolkampus
 
4 the relational data model and relational database constraints
4 the relational data model and relational database constraints4 the relational data model and relational database constraints
4 the relational data model and relational database constraints
Kumar
 
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
Smriti Jain
 
CS3270 - DATABASE SYSTEM - Lecture (1)
CS3270 - DATABASE SYSTEM -  Lecture (1)CS3270 - DATABASE SYSTEM -  Lecture (1)
CS3270 - DATABASE SYSTEM - Lecture (1)
Dilawar Khan
 
MySQL GUI Administration
MySQL GUI AdministrationMySQL GUI Administration
MySQL GUI Administration
Jaime Crespo
 
MariaDB 10: The Complete Tutorial
MariaDB 10: The Complete TutorialMariaDB 10: The Complete Tutorial
MariaDB 10: The Complete Tutorial
Colin Charles
 
File and data base management
File and data base managementFile and data base management
File and data base management
Asad Ahmed
 
Dbms ii mca-ch4-relational model-2013
Dbms ii mca-ch4-relational model-2013Dbms ii mca-ch4-relational model-2013
Dbms ii mca-ch4-relational model-2013
Prosanta Ghosh
 
Normalization
NormalizationNormalization
Normalization
ochesing
 
Bazat e te dhenave
Bazat e te dhenaveBazat e te dhenave
Bazat e te dhenave
Menaxherat
 
Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)
Jargalsaikhan Alyeksandr
 
Ad

Similar to Dbms relational model (20)

Dbms Lec Uog 02
Dbms Lec Uog 02Dbms Lec Uog 02
Dbms Lec Uog 02
smelltulip
 
DBMS-Week-2about hardware and software.PPT
DBMS-Week-2about hardware and software.PPTDBMS-Week-2about hardware and software.PPT
DBMS-Week-2about hardware and software.PPT
saimakhosa3
 
DBMS-Week-2about hardware and software.PPT
DBMS-Week-2about hardware and software.PPTDBMS-Week-2about hardware and software.PPT
DBMS-Week-2about hardware and software.PPT
saimakhosa3
 
Chapter 2 Database System Architecture.pdf
Chapter 2 Database System Architecture.pdfChapter 2 Database System Architecture.pdf
Chapter 2 Database System Architecture.pdf
Getnet Tigabie Askale -(GM)
 
D B M S Animate
D B M S AnimateD B M S Animate
D B M S Animate
Indu George
 
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
Dipen Parmar
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
KavithaA19
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database
Rc Os
 
2. Chapter Two.pdf
2. Chapter Two.pdf2. Chapter Two.pdf
2. Chapter Two.pdf
fikadumola
 
RDBMS
RDBMSRDBMS
RDBMS
NIVEETHITHAS
 
IET MySQL PPT Ver9ZESXRDCTFYVGBUHNIJOMK.pptx
IET MySQL PPT Ver9ZESXRDCTFYVGBUHNIJOMK.pptxIET MySQL PPT Ver9ZESXRDCTFYVGBUHNIJOMK.pptx
IET MySQL PPT Ver9ZESXRDCTFYVGBUHNIJOMK.pptx
chinmaygulhane747
 
PPT_DBMS.pptx
PPT_DBMS.pptxPPT_DBMS.pptx
PPT_DBMS.pptx
traderbear1
 
Database Technology Teaching Material For Learn
Database Technology Teaching Material For LearnDatabase Technology Teaching Material For Learn
Database Technology Teaching Material For Learn
hermawatyrahma21
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
NIVETHA37590
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdf
SameerKhanPathan7
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
OECLIB Odisha Electronics Control Library
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
GayathriPG3
 
Databases and its representation
Databases and its representationDatabases and its representation
Databases and its representation
Ruhull
 
Database fundamentals
Database fundamentalsDatabase fundamentals
Database fundamentals
LAILA ARZUMAN ARA
 
Database system concepts
Database system conceptsDatabase system concepts
Database system concepts
Kumar
 
Dbms Lec Uog 02
Dbms Lec Uog 02Dbms Lec Uog 02
Dbms Lec Uog 02
smelltulip
 
DBMS-Week-2about hardware and software.PPT
DBMS-Week-2about hardware and software.PPTDBMS-Week-2about hardware and software.PPT
DBMS-Week-2about hardware and software.PPT
saimakhosa3
 
DBMS-Week-2about hardware and software.PPT
DBMS-Week-2about hardware and software.PPTDBMS-Week-2about hardware and software.PPT
DBMS-Week-2about hardware and software.PPT
saimakhosa3
 
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
Dipen Parmar
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
KavithaA19
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database
Rc Os
 
2. Chapter Two.pdf
2. Chapter Two.pdf2. Chapter Two.pdf
2. Chapter Two.pdf
fikadumola
 
IET MySQL PPT Ver9ZESXRDCTFYVGBUHNIJOMK.pptx
IET MySQL PPT Ver9ZESXRDCTFYVGBUHNIJOMK.pptxIET MySQL PPT Ver9ZESXRDCTFYVGBUHNIJOMK.pptx
IET MySQL PPT Ver9ZESXRDCTFYVGBUHNIJOMK.pptx
chinmaygulhane747
 
Database Technology Teaching Material For Learn
Database Technology Teaching Material For LearnDatabase Technology Teaching Material For Learn
Database Technology Teaching Material For Learn
hermawatyrahma21
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdf
SameerKhanPathan7
 
Databases and its representation
Databases and its representationDatabases and its representation
Databases and its representation
Ruhull
 
Database system concepts
Database system conceptsDatabase system concepts
Database system concepts
Kumar
 
Ad

More from Chirag vasava (6)

indian standard for Hard-Drawn Copper Conductors for Over Head Power Transmis...
indian standard for Hard-Drawn Copper Conductors for Over Head Power Transmis...indian standard for Hard-Drawn Copper Conductors for Over Head Power Transmis...
indian standard for Hard-Drawn Copper Conductors for Over Head Power Transmis...
Chirag vasava
 
Copper conductor
Copper conductorCopper conductor
Copper conductor
Chirag vasava
 
Hard-Drawn Copper Conductors for Over Head Power Transmission
Hard-Drawn Copper Conductors for Over Head Power TransmissionHard-Drawn Copper Conductors for Over Head Power Transmission
Hard-Drawn Copper Conductors for Over Head Power Transmission
Chirag vasava
 
Arrays
ArraysArrays
Arrays
Chirag vasava
 
type of ohmmeter
type of ohmmetertype of ohmmeter
type of ohmmeter
Chirag vasava
 
(S.C.E.T) Appliction of pll fm demodulation fsk demodulation
(S.C.E.T) Appliction of pll fm demodulation fsk demodulation(S.C.E.T) Appliction of pll fm demodulation fsk demodulation
(S.C.E.T) Appliction of pll fm demodulation fsk demodulation
Chirag vasava
 
indian standard for Hard-Drawn Copper Conductors for Over Head Power Transmis...
indian standard for Hard-Drawn Copper Conductors for Over Head Power Transmis...indian standard for Hard-Drawn Copper Conductors for Over Head Power Transmis...
indian standard for Hard-Drawn Copper Conductors for Over Head Power Transmis...
Chirag vasava
 
Hard-Drawn Copper Conductors for Over Head Power Transmission
Hard-Drawn Copper Conductors for Over Head Power TransmissionHard-Drawn Copper Conductors for Over Head Power Transmission
Hard-Drawn Copper Conductors for Over Head Power Transmission
Chirag vasava
 
(S.C.E.T) Appliction of pll fm demodulation fsk demodulation
(S.C.E.T) Appliction of pll fm demodulation fsk demodulation(S.C.E.T) Appliction of pll fm demodulation fsk demodulation
(S.C.E.T) Appliction of pll fm demodulation fsk demodulation
Chirag vasava
 

Recently uploaded (20)

Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdfRICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
MohamedAbdelkader115
 
International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)
samueljackson3773
 
introduction to machine learining for beginers
introduction to machine learining for beginersintroduction to machine learining for beginers
introduction to machine learining for beginers
JoydebSheet
 
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Journal of Soft Computing in Civil Engineering
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
Avnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights FlyerAvnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights Flyer
WillDavies22
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
new ppt artificial intelligence historyyy
new ppt artificial intelligence historyyynew ppt artificial intelligence historyyy
new ppt artificial intelligence historyyy
PianoPianist
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdfRICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
MohamedAbdelkader115
 
International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)
samueljackson3773
 
introduction to machine learining for beginers
introduction to machine learining for beginersintroduction to machine learining for beginers
introduction to machine learining for beginers
JoydebSheet
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
Avnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights FlyerAvnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights Flyer
WillDavies22
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
new ppt artificial intelligence historyyy
new ppt artificial intelligence historyyynew ppt artificial intelligence historyyy
new ppt artificial intelligence historyyy
PianoPianist
 

Dbms relational model

  • 1. Database Management System (2130703) Topic:- Relational Model Prepared by- Vasava Aarti G Roll no_6140 (I.T departmet) 1
  • 2. Relational Model Object Relational Model Object Based data Model Brief History of the Relational Model 2
  • 3.  “A DBMS that manages data as collection of tables in which all data relationships are represented by common values in related tables.”  “A DBMS that follows all the twelve rules of CODD is called RDBMS” 3
  • 4. 4 Relational Database definition All information must be represented explicitlyAll information must be represented explicitly in one and only one way: as values in tables andin one and only one way: as values in tables and each & every datum in the database must beeach & every datum in the database must be accessible by specifying a table name, a columnaccessible by specifying a table name, a column name, and a primary key.name, and a primary key.
  • 5. 5 Data about various entities and their relationships are stored in a series of logical tables (also known as relations). A relation is a two-dimensional table with certain imposed restrictions: 1. Each Row is unique: No duplicate row 2. Entries in any column have the same domain. 3. Each column has a unique name 4. Order of the columns or rows is irrelevant 5. Each entry in the table is single valued: No group item, repeating group, or array is allowed. PRINCIPLES OF RELATIONAL MODELPRINCIPLES OF RELATIONAL MODEL Note: A domain is the set of all possible values an attribute may assume. Example: Domain of Major= (Acct, Mktg, Mgmt, ISOM, Fina)
  • 6.  Relational database: a set of relations. Relation: made up of 2 parts: – Schema : specifies name of relation, plus name and type of each column. • E.g. Students(sid: string, name: string, login: string, age: integer, gpa: real) – Instance : a table, with rows and columns. •#rows = cardinality •#fields = degree / arity • Can think of a relation as a set of rows or tuples. – i.e., all rows are distinct 6
  • 7.  The Relational Model developed by Dr. E. F. Codd at IBM in the late 1960s  The model built on mathematical concepts, which expounded in the famous work called "A Relational Model of Data for Large Shared Databanks".  At the core of the relational model is the concept of a table (also called a relation) in which all data is stored.  Records (horizontal rows also known as tuples) & Fields (vertical columns also known as attributes).  It is important to note that how or where the tables of data are stored makes no difference.  Table can be identified by a unique name.  This is quite a bit different from the Hierarchical & Network models in which the user had to have an understanding of how the data was structured within the database in order to retrieve, insert, update, or delete records from the database. 7
  • 8. Advantages:  The data access methodology in relational model is quite different from and better than the earlier database models .  Another benefit of the relational system is that it provides extremely useful tools for database administration.  Meta-data (data about the table and field names which form the database structure, access rights to the database, integrity and data validation rules etc).  Thus everything within the relational model can be stored in tables. This means that many relational systems can use operations recursively in order to provide information about the database. 8
  • 9. 9 TABLE (Relation)TABLE (Relation) DegreeDegree AttributesAttributes CardinCardin alityality PrimaryPrimary KeyKey TuplesTuples SupplierSupplier DomainDomainDomainDomain aa SNameSName QuantityQuantity CityCity S1S1 KeyurKeyur 2020 AhmedabadAhmedabad S2S2 VinayVinay 1010 SuratSurat S3S3 ChiragChirag 4040 BarodaBaroda S4S4 kevinkevin 3434 RajkotRajkot S5S5 NayanNayan 2525 BhavnagarBhavnagar
  • 10. 10 Member of a relation type (set / table).Member of a relation type (set / table). Tuples:Tuples: Relation / Table Degree:Relation / Table Degree: Attribute Value Set:Attribute Value Set: Attribute Domain:Attribute Domain: Attribute Name:Attribute Name: Attribute (field):Attribute (field): All attribute names must be unique within aAll attribute names must be unique within a table / relation.table / relation. A set of all possible values that can be attain byA set of all possible values that can be attain by an attribute.an attribute. Values currently contained in an attribute.Values currently contained in an attribute. Number of attributes in a relation / table.Number of attributes in a relation / table. Rows in a table / relation.Rows in a table / relation. Cardinality:Cardinality: Number of tuples in a relation / table.Number of tuples in a relation / table.
  • 11. 11 sid Name Login age GPA 53666 Jones Jones@ca 18 3.4 53444 smith Smith@ecs 18 3.2 53777 Blake Blake@aa 19 3.8 • Cardinality = 3, arity = 5 , all rows distinct • Do all values in each column of a relation instance have to be distinct? Student(studno,name,address) Course(courseno,lecturer) Student(123,Bloggs,Woolton) (321,Jones,Owens) Schema Instance
  • 12. 12 Database SchemaDatabase Schema The description of the database is calledThe description of the database is called database schema. A database schema isdatabase schema. A database schema is describe during database design and notdescribe during database design and not expected to change frequently.expected to change frequently. Schema DiagramSchema Diagram Displayed schema is called schema diagram.Displayed schema is called schema diagram. Each object in schema is called a schemaEach object in schema is called a schema construct.construct.
  • 13. 13 Database instance (occurrence or state)Database instance (occurrence or state) The data in a database at a particularThe data in a database at a particular moment of time.moment of time. Intension & ExtensionIntension & Extension The schema is sometimes called theThe schema is sometimes called the intension and a database instance is calledintension and a database instance is called an extension of the schema.an extension of the schema.
  • 14. CD_ID Title Artist Genre 1 The Wall Pink Floyd Rock 2 Blue Train John Coltrane Jazz 3 Requiem W.A. Mozart Classical 14 Field Record Table
  • 15. 15
  • 16. Tuple:  The actual data values for the attributes of a relation are stored in tuples, or rows, of the table.  It is not necessary for a relation to have rows in order to be a relation; even if no data exists for the relation  The relation remains defined with its set of attributes Attribute:  The term attribute refers to characteristics.This simply means that what the column contains will be defined by the attribute of the column 16
  • 17. EXAMPLES OF ATTRIBUTEEXAMPLES OF ATTRIBUTE DOMAINSDOMAINS 17
  • 18. 18
  • 19.  Built in data integrity  Data consistency and accuracy  Easy data retrieval and data sharing  How and where the tables of data stored make no difference  You can access child table with out accessing parent table.  Non-navigational in nature  Find the data on the basis of the data values themselves.  One point data administration  Controlling redundancy  Data abstraction  Provide security  Data entry , update and deletion will be efficient.  Changes to the of the database is somewhat self- documenting.  Support multiple users 19
  • 20. 20 DBMS RDBMS The concepts of relationships is missing in a DBMS. If it exits it is very less. It is based on the concept Of relationships Speed of operation is very slow Speed of operation is very Fast Hardware and Software requirements are minimum Hardware and Software requirements are High Platform used is normally DOS Platform used can be any DOS, UNIX,VAX,VMS, etc Uses concept of a file Uses concept of table DBMS normally use 3GL RDBMS normally use a 4GL Examples are dBase, FOXBASE, etc Examples are ORACLE, INGRESS, SQL Server 2000 etc
  • 21.  •        Oracle  •        Sybase  •        Microsoft SQL Server  •        Informix  •        Ingress  •        DB2 21
  • 22. 22 Country Capital Italy Rome India New Delhi China Beijing France Tokyo Japan Paris Country Currency Italy Lira India Rupee China Quan France Yen Japan Francs EXAMPES
  • 23. 23 Left Door Right Door Hood Roof Handle Window Lock Engine Body Chassis Car