SlideShare a Scribd company logo
UNIT 3 : DATABASES  &  SQL Developed by : Ms. Nita Arora   Kulachi Hansraj Model School Ashok Vihar
Relational Data Model Concept of Domain Tuple Relation Primary Key, Alternate Key, Candidate key Relational Algebra Selection Projection Union Cartesian Product
Advantages of the DBMS Approach The Database Approach Versus the Traditional File Processing Approach Storing data in a non-redundant database improves consistency of data. There is only one copy of each item of data. Unproductive Maintenance avoided. In file based systems, changes to file structure cause endless problems on maintenance (re-writing code). Using a DBMS, program access is through a limited view (using SQL). Thus programs can’t see minor changes to the database.
What is a database? A database is a collection of related data elements Tables (entities) Columns (fields or attributes)  Rows (records)
Some of the Advantages of using a DBMS Sharing of data  Control of redundancy and thus Data consistency  Improved data integrity  Better data accessibility  Representing complex relationships among data  Enforcing integrity constraints  Better security of data (as long as backup is perfect) More control over concurrency  Better backup and recovery procedures  Providing multiple interfaces  Faster development of new applications  Economy of scale
Some of the Disadvantages of using a DBMS High cost of Software Hardware costs high due to software complexity Requirement for skilled staff Higher programming costs - greater skill required Slower processing of some applications  Increased vulnerability (all your eggs in one basket) More difficult recovery (if disaster strikes)
DBMS Architecture Usually taken to imply a three level architecture.  The complexity of a large database is handled by a DBMS by providing three views of the data.  An  internal view  of how the data is stored and accessed A  conceptual view  of what data is available in the database. Local or  external views  which are a limited and simplified view of the database as suitable for a single application or group of associated applications. Data abstraction  Users deal with conceptual representation of the data. They have little control over how the data is stored.
Three Level Architecture One of the fundamental aspects of the database approach using a DBMS is that, by providing levels of data abstraction, it hides complexity of data storage from users. External Level View 1 View 4 View 2 View 3 etc. Conceptual Level Conceptual Schema Internal Schema Internal Level Physical Data Independence Logical Data Independence
DIFFERENT DATA MODELS Hierarchical Data Model Network Data Model Relational Data Model Relational Model propounded by E.F.Codd
RELATIONAL DATA MODELS :  Terminology Relation Attribute / Field / Column Tuple / Record / Row Concept of Domain Concept of Degree Cardinality View
RELATIONAL DATA MODELS :  Terminology (Contd….) Primary Key Candidate key Alternate key Foreign key
Relational Algebra The relational algebra is a collection of operations on relations. Each operation takes one or more relations as operand and produces another relation as its result
Relational Algebra Operations defined in relational algebra include : Select Project Cartesian Product Union * Set difference * Set intersection * Natural join * Division Note : * items not in syllabus
Select Extracts specified tuples (rows) from a specified relation (table).
Project Extracts specified attributes(columns) from a specified relation.
Join Builds a relation from two specified relations consisting of all possible concatenated pairs, one from each of the two relations, such that in each pair the two tuples satisfy some condition. (E.g., equal values in a given col.) (Natural or Inner)  Join A1  B1 A2  B1 A3  B2 B1  C1 B2  C2 B3  C3 A1  B1  C1 A2  B1  C1 A3  B2  C2
Outer Join Outer Joins are similar to PRODUCT -- but will leave NULLs for any row in the first table with no corresponding rows in the second. A1  B1 A2  B1 A3  B2 A4  B7 B1  C1 B2  C2 B3  C3 A1  B1  C1 A2  B1  C1 A3  B2  C2 A4  *  * Outer  Join
Join Items
Ad

More Related Content

What's hot (20)

Relational database revised
Relational database revisedRelational database revised
Relational database revised
mnodalo
 
RDBMS concepts
RDBMS conceptsRDBMS concepts
RDBMS concepts
◄ vaquar khan ► ★✔
 
DBMS - Relational Model
DBMS - Relational ModelDBMS - Relational Model
DBMS - Relational Model
Ovais Imtiaz
 
RDBMS
RDBMSRDBMS
RDBMS
NIVEETHITHAS
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
KavithaA19
 
Relational Model in dbms & sql database
Relational Model in dbms & sql databaseRelational Model in dbms & sql database
Relational Model in dbms & sql database
gourav kottawar
 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modeling
oudesign
 
Introduction to RDBMS
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMS
Sarmad Ali
 
RDBMS.ppt
RDBMS.pptRDBMS.ppt
RDBMS.ppt
Ketan Chaoji
 
Data Abstraction
Data AbstractionData Abstraction
Data Abstraction
A. S. M. Shafi
 
Dbms Lecture Notes
Dbms Lecture NotesDbms Lecture Notes
Dbms Lecture Notes
dM Technologies
 
Technical Note on DBMS
Technical Note on DBMSTechnical Note on DBMS
Technical Note on DBMS
Kr Shrishant
 
Introduction to DBMS(For College Seminars)
Introduction to DBMS(For College Seminars)Introduction to DBMS(For College Seminars)
Introduction to DBMS(For College Seminars)
Naman Joshi
 
Week 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental ConceptsWeek 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental Concepts
oudesign
 
RDBMS
RDBMSRDBMS
RDBMS
PriyangaRajaram
 
Database Design
Database DesignDatabase Design
Database Design
learnt
 
Datamodels & architecture
Datamodels & architectureDatamodels & architecture
Datamodels & architecture
Neeraj Kumar
 
Database management system
Database management systemDatabase management system
Database management system
edudivya
 
Dbms Concepts
Dbms ConceptsDbms Concepts
Dbms Concepts
adukkas
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database language
Jafar Nesargi
 
Relational database revised
Relational database revisedRelational database revised
Relational database revised
mnodalo
 
DBMS - Relational Model
DBMS - Relational ModelDBMS - Relational Model
DBMS - Relational Model
Ovais Imtiaz
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
KavithaA19
 
Relational Model in dbms & sql database
Relational Model in dbms & sql databaseRelational Model in dbms & sql database
Relational Model in dbms & sql database
gourav kottawar
 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modeling
oudesign
 
Introduction to RDBMS
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMS
Sarmad Ali
 
Technical Note on DBMS
Technical Note on DBMSTechnical Note on DBMS
Technical Note on DBMS
Kr Shrishant
 
Introduction to DBMS(For College Seminars)
Introduction to DBMS(For College Seminars)Introduction to DBMS(For College Seminars)
Introduction to DBMS(For College Seminars)
Naman Joshi
 
Week 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental ConceptsWeek 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental Concepts
oudesign
 
Database Design
Database DesignDatabase Design
Database Design
learnt
 
Datamodels & architecture
Datamodels & architectureDatamodels & architecture
Datamodels & architecture
Neeraj Kumar
 
Database management system
Database management systemDatabase management system
Database management system
edudivya
 
Dbms Concepts
Dbms ConceptsDbms Concepts
Dbms Concepts
adukkas
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database language
Jafar Nesargi
 

Viewers also liked (12)

Urinary system embryology
Urinary system embryologyUrinary system embryology
Urinary system embryology
ishtiaqqazi
 
The relational data model part[1]
The relational data model part[1]The relational data model part[1]
The relational data model part[1]
Bashir Rezaie
 
Introduction to Software - Coder Forge - John Mulhall
Introduction to Software - Coder Forge - John MulhallIntroduction to Software - Coder Forge - John Mulhall
Introduction to Software - Coder Forge - John Mulhall
John Mulhall
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...
Mustafa Kamel Mohammadi
 
Cardinality and participation constraints
Cardinality and participation constraintsCardinality and participation constraints
Cardinality and participation constraints
Nikhil Deswal
 
3. Relational Models in DBMS
3. Relational Models in DBMS3. Relational Models in DBMS
3. Relational Models in DBMS
koolkampus
 
Denormalization
DenormalizationDenormalization
Denormalization
Sohail Haider
 
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
 
Relational database management system (rdbms) i
Relational database management system (rdbms) iRelational database management system (rdbms) i
Relational database management system (rdbms) i
Ravinder Kamboj
 
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
Smriti Jain
 
14. Query Optimization in DBMS
14. Query Optimization in DBMS14. Query Optimization in DBMS
14. Query Optimization in DBMS
koolkampus
 
Rdbms
RdbmsRdbms
Rdbms
rdbms
 
Urinary system embryology
Urinary system embryologyUrinary system embryology
Urinary system embryology
ishtiaqqazi
 
The relational data model part[1]
The relational data model part[1]The relational data model part[1]
The relational data model part[1]
Bashir Rezaie
 
Introduction to Software - Coder Forge - John Mulhall
Introduction to Software - Coder Forge - John MulhallIntroduction to Software - Coder Forge - John Mulhall
Introduction to Software - Coder Forge - John Mulhall
John Mulhall
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...
Mustafa Kamel Mohammadi
 
Cardinality and participation constraints
Cardinality and participation constraintsCardinality and participation constraints
Cardinality and participation constraints
Nikhil Deswal
 
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
 
Relational database management system (rdbms) i
Relational database management system (rdbms) iRelational database management system (rdbms) i
Relational database management system (rdbms) i
Ravinder Kamboj
 
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
Smriti Jain
 
14. Query Optimization in DBMS
14. Query Optimization in DBMS14. Query Optimization in DBMS
14. Query Optimization in DBMS
koolkampus
 
Rdbms
RdbmsRdbms
Rdbms
rdbms
 
Ad

Similar to Rdbms (20)

unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
GayathriPG3
 
Comprehensive Guide to Effective Data Model Principles
Comprehensive Guide to Effective  Data Model PrinciplesComprehensive Guide to Effective  Data Model Principles
Comprehensive Guide to Effective Data Model Principles
EliasZerabruk
 
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
 
ip class 12 cnsddidsnfsdifsdbfuodfd (1).pptx
ip class 12 cnsddidsnfsdifsdbfuodfd (1).pptxip class 12 cnsddidsnfsdifsdbfuodfd (1).pptx
ip class 12 cnsddidsnfsdifsdbfuodfd (1).pptx
kanakishacker
 
BM322_03.pptx123456786546654525165654646564
BM322_03.pptx123456786546654525165654646564BM322_03.pptx123456786546654525165654646564
BM322_03.pptx123456786546654525165654646564
DrMoizAkhtar
 
Data abs ind & mod
Data abs  ind  & modData abs  ind  & mod
Data abs ind & mod
Haider Adnan
 
DATA BASE MODEL Rohini
DATA BASE MODEL RohiniDATA BASE MODEL Rohini
DATA BASE MODEL Rohini
Rai Saheb Bhanwar Singh College Nasrullaganj
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
AnmolThakur67
 
D B M S Animate
D B M S AnimateD B M S Animate
D B M S Animate
Indu George
 
Database Technology Teaching Material For Learn
Database Technology Teaching Material For LearnDatabase Technology Teaching Material For Learn
Database Technology Teaching Material For Learn
hermawatyrahma21
 
DBMS
DBMSDBMS
DBMS
KaranSingh274675
 
Database Languages Architecture Data Model.pptx
Database Languages Architecture Data Model.pptxDatabase Languages Architecture Data Model.pptx
Database Languages Architecture Data Model.pptx
shahid1204as
 
Rdbms
RdbmsRdbms
Rdbms
argusacademy
 
Database systems - Chapter 2 (Remaining)
Database systems - Chapter 2 (Remaining)Database systems - Chapter 2 (Remaining)
Database systems - Chapter 2 (Remaining)
shahab3
 
Database Systems - introduction
Database Systems - introductionDatabase Systems - introduction
Database Systems - introduction
Jananath Banuka
 
Database fundamentals
Database fundamentalsDatabase fundamentals
Database fundamentals
LAILA ARZUMAN ARA
 
Database Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdfDatabase Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdf
rsujeet169
 
2nd chapter dbms.pptx
2nd chapter dbms.pptx2nd chapter dbms.pptx
2nd chapter dbms.pptx
kavitha623544
 
Comprehensive Guide to Effective Data Model Principles
Comprehensive Guide to Effective  Data Model PrinciplesComprehensive Guide to Effective  Data Model Principles
Comprehensive Guide to Effective Data Model Principles
EliasZerabruk
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdf
SameerKhanPathan7
 
ip class 12 cnsddidsnfsdifsdbfuodfd (1).pptx
ip class 12 cnsddidsnfsdifsdbfuodfd (1).pptxip class 12 cnsddidsnfsdifsdbfuodfd (1).pptx
ip class 12 cnsddidsnfsdifsdbfuodfd (1).pptx
kanakishacker
 
BM322_03.pptx123456786546654525165654646564
BM322_03.pptx123456786546654525165654646564BM322_03.pptx123456786546654525165654646564
BM322_03.pptx123456786546654525165654646564
DrMoizAkhtar
 
Data abs ind & mod
Data abs  ind  & modData abs  ind  & mod
Data abs ind & mod
Haider Adnan
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
AnmolThakur67
 
Database Technology Teaching Material For Learn
Database Technology Teaching Material For LearnDatabase Technology Teaching Material For Learn
Database Technology Teaching Material For Learn
hermawatyrahma21
 
Database Languages Architecture Data Model.pptx
Database Languages Architecture Data Model.pptxDatabase Languages Architecture Data Model.pptx
Database Languages Architecture Data Model.pptx
shahid1204as
 
Database systems - Chapter 2 (Remaining)
Database systems - Chapter 2 (Remaining)Database systems - Chapter 2 (Remaining)
Database systems - Chapter 2 (Remaining)
shahab3
 
Database Systems - introduction
Database Systems - introductionDatabase Systems - introduction
Database Systems - introduction
Jananath Banuka
 
Database Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdfDatabase Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdf
rsujeet169
 
2nd chapter dbms.pptx
2nd chapter dbms.pptx2nd chapter dbms.pptx
2nd chapter dbms.pptx
kavitha623544
 
Ad

More from tech4us (8)

Edge1
Edge1Edge1
Edge1
tech4us
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slideshare
tech4us
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slideshare
tech4us
 
Cruched Eau
Cruched EauCruched Eau
Cruched Eau
tech4us
 
Sql
SqlSql
Sql
tech4us
 
Stacks & Queues
Stacks & QueuesStacks & Queues
Stacks & Queues
tech4us
 
Pointers (Pp Tminimizer)
Pointers (Pp Tminimizer)Pointers (Pp Tminimizer)
Pointers (Pp Tminimizer)
tech4us
 
eBeam : Intractive Whiteboard System
eBeam : Intractive Whiteboard SystemeBeam : Intractive Whiteboard System
eBeam : Intractive Whiteboard System
tech4us
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slideshare
tech4us
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slideshare
tech4us
 
Cruched Eau
Cruched EauCruched Eau
Cruched Eau
tech4us
 
Stacks & Queues
Stacks & QueuesStacks & Queues
Stacks & Queues
tech4us
 
Pointers (Pp Tminimizer)
Pointers (Pp Tminimizer)Pointers (Pp Tminimizer)
Pointers (Pp Tminimizer)
tech4us
 
eBeam : Intractive Whiteboard System
eBeam : Intractive Whiteboard SystemeBeam : Intractive Whiteboard System
eBeam : Intractive Whiteboard System
tech4us
 

Recently uploaded (20)

Comments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Comments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdfComments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Comments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Brij Consulting, LLC
 
Petslify Turns Pet Photos into Hug-Worthy Memories
Petslify Turns Pet Photos into Hug-Worthy MemoriesPetslify Turns Pet Photos into Hug-Worthy Memories
Petslify Turns Pet Photos into Hug-Worthy Memories
Petslify
 
BeMetals_Presentation_May_2025 .pdf
BeMetals_Presentation_May_2025      .pdfBeMetals_Presentation_May_2025      .pdf
BeMetals_Presentation_May_2025 .pdf
DerekIwanaka2
 
waterBeta white paper - 250202- two-column.docx
waterBeta white paper - 250202- two-column.docxwaterBeta white paper - 250202- two-column.docx
waterBeta white paper - 250202- two-column.docx
Peter Adriaens
 
Smart Home Market Size, Growth and Report (2025-2034)
Smart Home Market Size, Growth and Report (2025-2034)Smart Home Market Size, Growth and Report (2025-2034)
Smart Home Market Size, Growth and Report (2025-2034)
GeorgeButtler
 
CGG Deck English - Apr 2025-edit (1).pptx
CGG Deck English - Apr 2025-edit (1).pptxCGG Deck English - Apr 2025-edit (1).pptx
CGG Deck English - Apr 2025-edit (1).pptx
China_Gold_International_Resources
 
www.visualmedia.com digital markiting (1).pptx
www.visualmedia.com digital markiting (1).pptxwww.visualmedia.com digital markiting (1).pptx
www.visualmedia.com digital markiting (1).pptx
Davinder Singh
 
LDMMIA Bday celebration 2025 Gifts information
LDMMIA Bday celebration 2025 Gifts informationLDMMIA Bday celebration 2025 Gifts information
LDMMIA Bday celebration 2025 Gifts information
LDM Mia eStudios
 
Kiran Flemish - A Dynamic Musician
Kiran  Flemish  -  A   Dynamic  MusicianKiran  Flemish  -  A   Dynamic  Musician
Kiran Flemish - A Dynamic Musician
Kiran Flemish
 
Strategic Enterprise Management - Unit I.pptx
Strategic Enterprise Management - Unit I.pptxStrategic Enterprise Management - Unit I.pptx
Strategic Enterprise Management - Unit I.pptx
PrekshyaRana
 
20250428 CDB Investor Deck_Apr25_vFF.pdf
20250428 CDB Investor Deck_Apr25_vFF.pdf20250428 CDB Investor Deck_Apr25_vFF.pdf
20250428 CDB Investor Deck_Apr25_vFF.pdf
yihong30
 
NewBase 28 April 2025 Energy News issue - 1783 by Khaled Al Awadi_compressed...
NewBase 28 April 2025  Energy News issue - 1783 by Khaled Al Awadi_compressed...NewBase 28 April 2025  Energy News issue - 1783 by Khaled Al Awadi_compressed...
NewBase 28 April 2025 Energy News issue - 1783 by Khaled Al Awadi_compressed...
Khaled Al Awadi
 
Solaris Resources Presentation - Corporate April 2025.pdf
Solaris Resources Presentation - Corporate April 2025.pdfSolaris Resources Presentation - Corporate April 2025.pdf
Solaris Resources Presentation - Corporate April 2025.pdf
pchambers2
 
Harnessing Hyper-Localisation: A New Era in Retail Strategy
Harnessing Hyper-Localisation: A New Era in Retail StrategyHarnessing Hyper-Localisation: A New Era in Retail Strategy
Harnessing Hyper-Localisation: A New Era in Retail Strategy
RUPAL AGARWAL
 
Top 5 Mistakes to Avoid When Writing a Job Application
Top 5 Mistakes to Avoid When Writing a Job ApplicationTop 5 Mistakes to Avoid When Writing a Job Application
Top 5 Mistakes to Avoid When Writing a Job Application
Red Tape Busters
 
Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...
Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...
Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...
Lviv Startup Club
 
Network Detection and Response (NDR): The Future of Intelligent Cybersecurity
Network Detection and Response (NDR): The Future of Intelligent CybersecurityNetwork Detection and Response (NDR): The Future of Intelligent Cybersecurity
Network Detection and Response (NDR): The Future of Intelligent Cybersecurity
GauriKale30
 
TMG - Q3 2025 Earnings Call Slides - v4.pptx
TMG - Q3 2025 Earnings Call Slides - v4.pptxTMG - Q3 2025 Earnings Call Slides - v4.pptx
TMG - Q3 2025 Earnings Call Slides - v4.pptx
Marketing847413
 
Level Up Your Launch: Utilizing AI for Start-up Success
Level Up Your Launch: Utilizing AI for Start-up SuccessLevel Up Your Launch: Utilizing AI for Start-up Success
Level Up Your Launch: Utilizing AI for Start-up Success
Best Virtual Specialist
 
From Dreams to Threads: The Story Behind The Chhapai
From Dreams to Threads: The Story Behind The ChhapaiFrom Dreams to Threads: The Story Behind The Chhapai
From Dreams to Threads: The Story Behind The Chhapai
The Chhapai
 
Comments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Comments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdfComments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Comments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Brij Consulting, LLC
 
Petslify Turns Pet Photos into Hug-Worthy Memories
Petslify Turns Pet Photos into Hug-Worthy MemoriesPetslify Turns Pet Photos into Hug-Worthy Memories
Petslify Turns Pet Photos into Hug-Worthy Memories
Petslify
 
BeMetals_Presentation_May_2025 .pdf
BeMetals_Presentation_May_2025      .pdfBeMetals_Presentation_May_2025      .pdf
BeMetals_Presentation_May_2025 .pdf
DerekIwanaka2
 
waterBeta white paper - 250202- two-column.docx
waterBeta white paper - 250202- two-column.docxwaterBeta white paper - 250202- two-column.docx
waterBeta white paper - 250202- two-column.docx
Peter Adriaens
 
Smart Home Market Size, Growth and Report (2025-2034)
Smart Home Market Size, Growth and Report (2025-2034)Smart Home Market Size, Growth and Report (2025-2034)
Smart Home Market Size, Growth and Report (2025-2034)
GeorgeButtler
 
www.visualmedia.com digital markiting (1).pptx
www.visualmedia.com digital markiting (1).pptxwww.visualmedia.com digital markiting (1).pptx
www.visualmedia.com digital markiting (1).pptx
Davinder Singh
 
LDMMIA Bday celebration 2025 Gifts information
LDMMIA Bday celebration 2025 Gifts informationLDMMIA Bday celebration 2025 Gifts information
LDMMIA Bday celebration 2025 Gifts information
LDM Mia eStudios
 
Kiran Flemish - A Dynamic Musician
Kiran  Flemish  -  A   Dynamic  MusicianKiran  Flemish  -  A   Dynamic  Musician
Kiran Flemish - A Dynamic Musician
Kiran Flemish
 
Strategic Enterprise Management - Unit I.pptx
Strategic Enterprise Management - Unit I.pptxStrategic Enterprise Management - Unit I.pptx
Strategic Enterprise Management - Unit I.pptx
PrekshyaRana
 
20250428 CDB Investor Deck_Apr25_vFF.pdf
20250428 CDB Investor Deck_Apr25_vFF.pdf20250428 CDB Investor Deck_Apr25_vFF.pdf
20250428 CDB Investor Deck_Apr25_vFF.pdf
yihong30
 
NewBase 28 April 2025 Energy News issue - 1783 by Khaled Al Awadi_compressed...
NewBase 28 April 2025  Energy News issue - 1783 by Khaled Al Awadi_compressed...NewBase 28 April 2025  Energy News issue - 1783 by Khaled Al Awadi_compressed...
NewBase 28 April 2025 Energy News issue - 1783 by Khaled Al Awadi_compressed...
Khaled Al Awadi
 
Solaris Resources Presentation - Corporate April 2025.pdf
Solaris Resources Presentation - Corporate April 2025.pdfSolaris Resources Presentation - Corporate April 2025.pdf
Solaris Resources Presentation - Corporate April 2025.pdf
pchambers2
 
Harnessing Hyper-Localisation: A New Era in Retail Strategy
Harnessing Hyper-Localisation: A New Era in Retail StrategyHarnessing Hyper-Localisation: A New Era in Retail Strategy
Harnessing Hyper-Localisation: A New Era in Retail Strategy
RUPAL AGARWAL
 
Top 5 Mistakes to Avoid When Writing a Job Application
Top 5 Mistakes to Avoid When Writing a Job ApplicationTop 5 Mistakes to Avoid When Writing a Job Application
Top 5 Mistakes to Avoid When Writing a Job Application
Red Tape Busters
 
Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...
Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...
Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...
Lviv Startup Club
 
Network Detection and Response (NDR): The Future of Intelligent Cybersecurity
Network Detection and Response (NDR): The Future of Intelligent CybersecurityNetwork Detection and Response (NDR): The Future of Intelligent Cybersecurity
Network Detection and Response (NDR): The Future of Intelligent Cybersecurity
GauriKale30
 
TMG - Q3 2025 Earnings Call Slides - v4.pptx
TMG - Q3 2025 Earnings Call Slides - v4.pptxTMG - Q3 2025 Earnings Call Slides - v4.pptx
TMG - Q3 2025 Earnings Call Slides - v4.pptx
Marketing847413
 
Level Up Your Launch: Utilizing AI for Start-up Success
Level Up Your Launch: Utilizing AI for Start-up SuccessLevel Up Your Launch: Utilizing AI for Start-up Success
Level Up Your Launch: Utilizing AI for Start-up Success
Best Virtual Specialist
 
From Dreams to Threads: The Story Behind The Chhapai
From Dreams to Threads: The Story Behind The ChhapaiFrom Dreams to Threads: The Story Behind The Chhapai
From Dreams to Threads: The Story Behind The Chhapai
The Chhapai
 

Rdbms

  • 1. UNIT 3 : DATABASES & SQL Developed by : Ms. Nita Arora Kulachi Hansraj Model School Ashok Vihar
  • 2. Relational Data Model Concept of Domain Tuple Relation Primary Key, Alternate Key, Candidate key Relational Algebra Selection Projection Union Cartesian Product
  • 3. Advantages of the DBMS Approach The Database Approach Versus the Traditional File Processing Approach Storing data in a non-redundant database improves consistency of data. There is only one copy of each item of data. Unproductive Maintenance avoided. In file based systems, changes to file structure cause endless problems on maintenance (re-writing code). Using a DBMS, program access is through a limited view (using SQL). Thus programs can’t see minor changes to the database.
  • 4. What is a database? A database is a collection of related data elements Tables (entities) Columns (fields or attributes) Rows (records)
  • 5. Some of the Advantages of using a DBMS Sharing of data Control of redundancy and thus Data consistency Improved data integrity Better data accessibility Representing complex relationships among data Enforcing integrity constraints Better security of data (as long as backup is perfect) More control over concurrency Better backup and recovery procedures Providing multiple interfaces Faster development of new applications Economy of scale
  • 6. Some of the Disadvantages of using a DBMS High cost of Software Hardware costs high due to software complexity Requirement for skilled staff Higher programming costs - greater skill required Slower processing of some applications Increased vulnerability (all your eggs in one basket) More difficult recovery (if disaster strikes)
  • 7. DBMS Architecture Usually taken to imply a three level architecture. The complexity of a large database is handled by a DBMS by providing three views of the data. An internal view of how the data is stored and accessed A conceptual view of what data is available in the database. Local or external views which are a limited and simplified view of the database as suitable for a single application or group of associated applications. Data abstraction Users deal with conceptual representation of the data. They have little control over how the data is stored.
  • 8. Three Level Architecture One of the fundamental aspects of the database approach using a DBMS is that, by providing levels of data abstraction, it hides complexity of data storage from users. External Level View 1 View 4 View 2 View 3 etc. Conceptual Level Conceptual Schema Internal Schema Internal Level Physical Data Independence Logical Data Independence
  • 9. DIFFERENT DATA MODELS Hierarchical Data Model Network Data Model Relational Data Model Relational Model propounded by E.F.Codd
  • 10. RELATIONAL DATA MODELS : Terminology Relation Attribute / Field / Column Tuple / Record / Row Concept of Domain Concept of Degree Cardinality View
  • 11. RELATIONAL DATA MODELS : Terminology (Contd….) Primary Key Candidate key Alternate key Foreign key
  • 12. Relational Algebra The relational algebra is a collection of operations on relations. Each operation takes one or more relations as operand and produces another relation as its result
  • 13. Relational Algebra Operations defined in relational algebra include : Select Project Cartesian Product Union * Set difference * Set intersection * Natural join * Division Note : * items not in syllabus
  • 14. Select Extracts specified tuples (rows) from a specified relation (table).
  • 15. Project Extracts specified attributes(columns) from a specified relation.
  • 16. Join Builds a relation from two specified relations consisting of all possible concatenated pairs, one from each of the two relations, such that in each pair the two tuples satisfy some condition. (E.g., equal values in a given col.) (Natural or Inner) Join A1 B1 A2 B1 A3 B2 B1 C1 B2 C2 B3 C3 A1 B1 C1 A2 B1 C1 A3 B2 C2
  • 17. Outer Join Outer Joins are similar to PRODUCT -- but will leave NULLs for any row in the first table with no corresponding rows in the second. A1 B1 A2 B1 A3 B2 A4 B7 B1 C1 B2 C2 B3 C3 A1 B1 C1 A2 B1 C1 A3 B2 C2 A4 * * Outer Join