SlideShare a Scribd company logo
3
Most read
4
Most read
8
Most read
Reviewing Basic Concepts of
Relational Database
Prof. Hitesh Mohapatra
Why there is need of database?
• Multiple file with the same content.
• Multiple file with different content but with
same name.
• Updation of information into multiple files.
• Data are stored at multiple locations.
What is database?
• A Database is a system that allows everyone
to share, manage and use data.
• Reduces data redundancy
• Reduces updating errors and increased consistency
• Greater data integrity and independence from
applications programs
• Improvises data access to users through use of
host and query languages
• Improves data security
• Reduces data entry, storage, and retrieval costs
• Facilitated development of new applications
program Database
What are the disadvantages of
database?
• Database systems are complex, difficult, and
time-consuming to design
• Substantial hardware and software start-up costs
• Damage to database affects virtually all
applications programs
• Extensive conversion costs in moving form a file-
based system to a database system
• Initial training required for all programmers and
users
What are the types of databases
available?
• Hierarchical Data Model, in
which there is a tree-like
relationship between data.
• Network Data Model, in
which pieces of data have
overlapping relationships
with each other.
• Relational Data Model,
process data using the easy-
to-understand concept of
table.
What is a Relational Database?
• A relational database is a type of database.
• It uses a structure that allows us to identify
and access data in relation to another piece of
data in the database.
• Data in a relational database is organized into
tables.
Table, Record, Field, Row & Column
• A table is a set of data elements (values).
• A piece of data in a file is called a record.
• Each item in a record is called a field.
• One piece of data or record is called a row.
• Each item or field is called a column.
Types of keys
• Key: One or more columns in a database table that is used to sort and/or identify rows in a
table. e.g. if you were sorting people by the field salary then the salary field is the key.
• Primary key: A primary key is a one or more fields that uniquely identifies a row in a table.
The primary key cannot be null (blank). The primary key is indexed (more on index later).
• Foreign key: A foreign key is a relationship between columns in two database tables (one of
which is indexed) designed to insure consistency of data.
• Composite key: A primary key composed of one or more columns. The primary key can be
formed using the fields (though not very advisable).
• Natural key: A composite primary key which is composed of attributes (fields) which already
exist in the real world (for example First Name, Last Name, Social Security Number).
• Surrogate key: A primary key which is internally generated (typically auto-incremental integer
value) that does not exist in the real world (for example, ID which serves to identify the
record but nothing else).
• Candidate key: A column, or set of columns, in a table that can uniquely identify any
database record without referring to any other data. Each table may have one or more
candidate keys, but one candidate key is unique (the primary key).
• Compound key: A composite key consisting of two or more fields that uniquely describe a
row in a table. The difference between compound and candidate is that all of the fields in the
compound key are foreign keys; in the candidate key one or more of the fields may be foreign
keys (but it is not mandatory).
How to design a database?
When you try to create a database yourself, the
first step is to determine the conditions of the
data you are trying to model.
The E-R model
E refers Entity. A recognizable object in the real world. For
example, when exporting fruits to other
countries, fruit and export destination can be considered
entities. Represented with a rectangle.
• Each entity has attributes,
particular properties that
describe the entity (Product
Name in Fruit, for example).
Represented with an ovallus.
• R refers relationship. How entities
relate with each other. For example,
fruits and export destination are
associated with each other because
you sell fruits to export
destinations. Represented with a
diamond. Fruit is exported to many
Export destinations and Export
destination purchases many kinds of
fruit. We call this a many-to-many
relationship. In the E-R model the
number of associations between
entities is considered, this is
called cardinality.
• Cardinality: Number of associations between
entities.
• One-to-one relationship (1-1): I only sell fruits to you
and you only buy fruits from me.
• One-to-many (or many-to-one) relationship (n-1 or 1-n):
I sell fruits to other families and those families buy fruits
only from me.
• Many-to-many relationship (n-n): You have an example
above.
Normalization
Process of tabulating data from the real world
for a relational database, following a series of
steps. It is necessary to Normalize data in order
to properly manage a relational database.
Normalization is used for mainly two purposes:
• Eliminating redundant(useless) data.
• Ensuring data dependencies make sense i.e. data is
logically stored.
Steps for designing a database
• Determine the purpose of the database.
• Determine the tables needed.
• Identify needed fields.
• Identify exclusive fields.
• Determine relations between tables.
• Define constraints to preserve data integrity
(don't forget normalization).
Reviewing basic concepts of relational database

More Related Content

PPT
Lecture 01 introduction to database
PPTX
Integrity Constraints
PDF
Data models
PPSX
Functional dependency
PPT
Data models
PPTX
Physical database design(database)
PPTX
Chapter-6 Relational Algebra
PPTX
Functional dependencies in Database Management System
Lecture 01 introduction to database
Integrity Constraints
Data models
Functional dependency
Data models
Physical database design(database)
Chapter-6 Relational Algebra
Functional dependencies in Database Management System

What's hot (20)

PPT
data modeling and models
PPTX
Relational model
PPTX
Data base management system
PDF
Introduction: Databases and Database Users
PPT
Entity relationship modelling
PPTX
ER MODEL
PPTX
Relational Database Design
PPT
Database and Database Management (DBM): Health Informatics
PDF
2 database system concepts and architecture
PPT
File organization 1
PPT
Dbms relational model
PPTX
Er diagrams presentation
PPT
Database Relationships
PPTX
The Relational Database Model
PPTX
Introduction to database
PPTX
Dbms database models
PPT
Data Models.ppt
PDF
Data warehouse architecture
PPTX
PDF
Lecture 1 introduction to parallel and distributed computing
data modeling and models
Relational model
Data base management system
Introduction: Databases and Database Users
Entity relationship modelling
ER MODEL
Relational Database Design
Database and Database Management (DBM): Health Informatics
2 database system concepts and architecture
File organization 1
Dbms relational model
Er diagrams presentation
Database Relationships
The Relational Database Model
Introduction to database
Dbms database models
Data Models.ppt
Data warehouse architecture
Lecture 1 introduction to parallel and distributed computing
Ad

Similar to Reviewing basic concepts of relational database (20)

PPTX
Module 3 Database systems for DIPLOMA.pptx
PPTX
SQL-queries-for-Data-Analysts-Updated.pptx
PPTX
Database Intermediate First Session- 23 July.pptx
PPT
demo2.ppt
PPTX
Data structures
PPT
relational database
PPT
Info systems databases
PPTX
Lecture 01 Intro to DSA
PPTX
Lec20.pptx introduction to data bases and information systems
PPTX
Presentation Datatbase Final.pptx
PPTX
Introduction to ms access database
PDF
Relational data base management system (Unit 1)
PPTX
Introduction to Data Warehousing
PPT
Spatial Data Base Mangment-Teaching Material PPT.ppt
PPTX
Unit 1_a3a8ea5ab7e65a96a4c41a4868546494.pptx
PPTX
Data and functional modeling
PPT
This discussion about the dbms introduction
PDF
RDBMS Unit-2.pdf Entity Relationship Diagram
PPT
Data dictionary
PPT
ER Digramms by Harshal wagh
Module 3 Database systems for DIPLOMA.pptx
SQL-queries-for-Data-Analysts-Updated.pptx
Database Intermediate First Session- 23 July.pptx
demo2.ppt
Data structures
relational database
Info systems databases
Lecture 01 Intro to DSA
Lec20.pptx introduction to data bases and information systems
Presentation Datatbase Final.pptx
Introduction to ms access database
Relational data base management system (Unit 1)
Introduction to Data Warehousing
Spatial Data Base Mangment-Teaching Material PPT.ppt
Unit 1_a3a8ea5ab7e65a96a4c41a4868546494.pptx
Data and functional modeling
This discussion about the dbms introduction
RDBMS Unit-2.pdf Entity Relationship Diagram
Data dictionary
ER Digramms by Harshal wagh
Ad

More from Hitesh Mohapatra (20)

PDF
Introduction to Edge and Fog Computing.pdf
PDF
Amazon Web Services (AWS) : Fundamentals
PDF
Resource Cluster and Multi-Device Broker.pdf
PDF
Failover System in Cloud Computing System
PDF
Resource Replication & Automated Scaling Listener
PDF
Storage Device & Usage Monitor in Cloud Computing.pdf
PDF
Networking in Cloud Computing Environment
PDF
Uniform-Cost Search Algorithm in the AI Environment
PDF
Logical Network Perimeter in Cloud Computing
PPT
Software Product Quality - Part 1 Presentation
PDF
Multitenancy in cloud computing architecture
PDF
Server Consolidation in Cloud Computing Environment
PDF
Web Services / Technology in Cloud Computing
PDF
Resource replication in cloud computing.
PDF
Software Measurement and Metrics (Quantified Attribute)
PDF
Software project management is an art and discipline of planning and supervis...
PDF
Software project management is an art and discipline of planning and supervis...
PDF
The life cycle of a virtual machine (VM) provisioning process
PDF
BUSINESS CONSIDERATIONS FOR CLOUD COMPUTING
PDF
Traditional Data Center vs. Virtualization – Differences and Benefits
Introduction to Edge and Fog Computing.pdf
Amazon Web Services (AWS) : Fundamentals
Resource Cluster and Multi-Device Broker.pdf
Failover System in Cloud Computing System
Resource Replication & Automated Scaling Listener
Storage Device & Usage Monitor in Cloud Computing.pdf
Networking in Cloud Computing Environment
Uniform-Cost Search Algorithm in the AI Environment
Logical Network Perimeter in Cloud Computing
Software Product Quality - Part 1 Presentation
Multitenancy in cloud computing architecture
Server Consolidation in Cloud Computing Environment
Web Services / Technology in Cloud Computing
Resource replication in cloud computing.
Software Measurement and Metrics (Quantified Attribute)
Software project management is an art and discipline of planning and supervis...
Software project management is an art and discipline of planning and supervis...
The life cycle of a virtual machine (VM) provisioning process
BUSINESS CONSIDERATIONS FOR CLOUD COMPUTING
Traditional Data Center vs. Virtualization – Differences and Benefits

Recently uploaded (20)

PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Digital Logic Computer Design lecture notes
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPT
Mechanical Engineering MATERIALS Selection
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
composite construction of structures.pdf
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
web development for engineering and engineering
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
CH1 Production IntroductoryConcepts.pptx
Digital Logic Computer Design lecture notes
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Mechanical Engineering MATERIALS Selection
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
R24 SURVEYING LAB MANUAL for civil enggi
composite construction of structures.pdf
UNIT-1 - COAL BASED THERMAL POWER PLANTS
web development for engineering and engineering

Reviewing basic concepts of relational database

  • 1. Reviewing Basic Concepts of Relational Database Prof. Hitesh Mohapatra
  • 2. Why there is need of database? • Multiple file with the same content. • Multiple file with different content but with same name. • Updation of information into multiple files. • Data are stored at multiple locations.
  • 3. What is database? • A Database is a system that allows everyone to share, manage and use data. • Reduces data redundancy • Reduces updating errors and increased consistency • Greater data integrity and independence from applications programs • Improvises data access to users through use of host and query languages • Improves data security • Reduces data entry, storage, and retrieval costs • Facilitated development of new applications program Database
  • 4. What are the disadvantages of database? • Database systems are complex, difficult, and time-consuming to design • Substantial hardware and software start-up costs • Damage to database affects virtually all applications programs • Extensive conversion costs in moving form a file- based system to a database system • Initial training required for all programmers and users
  • 5. What are the types of databases available? • Hierarchical Data Model, in which there is a tree-like relationship between data. • Network Data Model, in which pieces of data have overlapping relationships with each other. • Relational Data Model, process data using the easy- to-understand concept of table.
  • 6. What is a Relational Database? • A relational database is a type of database. • It uses a structure that allows us to identify and access data in relation to another piece of data in the database. • Data in a relational database is organized into tables.
  • 7. Table, Record, Field, Row & Column • A table is a set of data elements (values). • A piece of data in a file is called a record. • Each item in a record is called a field. • One piece of data or record is called a row. • Each item or field is called a column.
  • 8. Types of keys • Key: One or more columns in a database table that is used to sort and/or identify rows in a table. e.g. if you were sorting people by the field salary then the salary field is the key. • Primary key: A primary key is a one or more fields that uniquely identifies a row in a table. The primary key cannot be null (blank). The primary key is indexed (more on index later). • Foreign key: A foreign key is a relationship between columns in two database tables (one of which is indexed) designed to insure consistency of data. • Composite key: A primary key composed of one or more columns. The primary key can be formed using the fields (though not very advisable). • Natural key: A composite primary key which is composed of attributes (fields) which already exist in the real world (for example First Name, Last Name, Social Security Number). • Surrogate key: A primary key which is internally generated (typically auto-incremental integer value) that does not exist in the real world (for example, ID which serves to identify the record but nothing else). • Candidate key: A column, or set of columns, in a table that can uniquely identify any database record without referring to any other data. Each table may have one or more candidate keys, but one candidate key is unique (the primary key). • Compound key: A composite key consisting of two or more fields that uniquely describe a row in a table. The difference between compound and candidate is that all of the fields in the compound key are foreign keys; in the candidate key one or more of the fields may be foreign keys (but it is not mandatory).
  • 9. How to design a database? When you try to create a database yourself, the first step is to determine the conditions of the data you are trying to model.
  • 10. The E-R model E refers Entity. A recognizable object in the real world. For example, when exporting fruits to other countries, fruit and export destination can be considered entities. Represented with a rectangle. • Each entity has attributes, particular properties that describe the entity (Product Name in Fruit, for example). Represented with an ovallus.
  • 11. • R refers relationship. How entities relate with each other. For example, fruits and export destination are associated with each other because you sell fruits to export destinations. Represented with a diamond. Fruit is exported to many Export destinations and Export destination purchases many kinds of fruit. We call this a many-to-many relationship. In the E-R model the number of associations between entities is considered, this is called cardinality.
  • 12. • Cardinality: Number of associations between entities. • One-to-one relationship (1-1): I only sell fruits to you and you only buy fruits from me. • One-to-many (or many-to-one) relationship (n-1 or 1-n): I sell fruits to other families and those families buy fruits only from me. • Many-to-many relationship (n-n): You have an example above.
  • 13. Normalization Process of tabulating data from the real world for a relational database, following a series of steps. It is necessary to Normalize data in order to properly manage a relational database. Normalization is used for mainly two purposes: • Eliminating redundant(useless) data. • Ensuring data dependencies make sense i.e. data is logically stored.
  • 14. Steps for designing a database • Determine the purpose of the database. • Determine the tables needed. • Identify needed fields. • Identify exclusive fields. • Determine relations between tables. • Define constraints to preserve data integrity (don't forget normalization).