SlideShare a Scribd company logo
1 of 20
RELATIONAL
CALCULUS
- Arpit Kumar Mishra
- Sameer Yadav
Presented by :-
Table of contents
01
02
03
04
Introduction
Tuple Relational Calculus (TRC)
Types
Domain Relational Calculus (DRC)
Introduction
Why it is called Relational Calculus?
01
What is Relational calculus?
Relational calculus is a Non-Procedural query
language (Declarative Language).
In the non-procedural query language, the user
is concerned with the details of how to obtain
the end results.
The relational calculus tells what to do but
never explains how to do.
Why it is called Relational Calculus?
It uses mathematical Predicate Calculus (first-order logic).
A predicate is a truth-valued function with arguments. On substituting
values for the arguments, the function result in an expression called a
proposition.
It can be either true or false.
Calculus has variables, constants, comparison operator, logical
connectives and quantifiers.
Expressions in the calculus are called formulas.
Types of Relational Calculus
02
Relational Calculus
Tuple Relational
Calculus
• Proposed by Codd in the year 1972.
• Works on tuples (row).
• Example - SQL
Domain Relational
Calculus
• Proposed by Lacroix & Pirotte in the
year 1977.
• Works on domain of attributes
(columns).
• Example - QBE
Tuple Relational Calculus
( TRC )
03
Tuple Relational calculus is a Non-Procedural query language.
It is used for selecting the tuples in a relation that satisfy the given
condition (or predicate). The result of the relation can have one or
more tuples.
A query in TRC is expressed as:
{ T | P (T) } or { T | Condition (T) }
Where
T is the resulting tuples
P(T) is the condition used to fetch T.
Predicate Calculus Formula
01
02
03
Set of attributes and constants
Set of comparison operators eg: < , = , >
Set of connectives eg: ∧ (and), ∨ (or) and ┓ (not)
04
05
Implication eg: x => y, if x is true, then y is true
Quantifiers eg: Existential (∃) and Universal Quantifiers (∀)
Free and Bound variables
The use of quantifiers ∃x and ∀x in a formula is
said to bind x in the formula.
A variable that is not bound is free.
The variable ‘ t ’ that appears to the left of ‘|’ must
be the only free variable in the formula P(T).
All the other tuple variables must be bound using
a quantifier.
{ T | P (T) }
Example Queries: TRC
o Find the branch–name, loan–number, and amount for loans of
over $1200 .
{ t | t ∈ Loan ∧ t[amount] > 1200 }
Branch (branch-name, branch-city, assets)
Customer (customer-name, customer-city)
Account (account-number, branch-name, balance)
Loan (loan-number, branch-name, amount)
Depositor (customer-name, account-number)
Borrower (customer-name, loan-number)
o Find the loan–number for each loan of an amount greater
than $1200.
{ t | ∃s ∈ Loan( t[ loan–number ] = s[ loan–number ]
∧ s[ amount > 1200 ] ) }
o Find the names of all customers having a loan at the Perryridge
branch.
{ t | ∃b ∈ Borrower( t[ customer-name ] = b[ customer–name]
∧ ∃s ∈ Loan ( s[ branch-name ] = “Perryridge”
∧ s[ loan–number ] = b[ loan–number ] )) }
o Find the names of all customers having a loan, an account, or
both at the bank.
{ t | ∃b ∈ Borrower( t[ customer-name ] = b[ customer–name] )
∨ ∃d ∈ Depositor( t[ customer-name ] = d[ customer–name] ) }
o Find the names of all customers who having a loan and an
account at the bank.
{ t | ∃b ∈ Borrower( t[ customer-name ] = b[ customer–name] )
∧ ∃d ∈ Depositor( t[ customer-name ] = d[ customer–name] ) }
Domain Relational Calculus
( DRC )
not to confuse it with Daulat Ram College.
04
Domain Relational calculus is a Non-Procedural query language.
DRC uses list of attributes to be selected from relation based on the
condition (or predicate). It is same as TRC but differs by selecting the
attributes rather than selecting whole tuples.
A query in DRC is expressed as:
{ <a1, a2, a3, ..., an> | P (a1, a2, a3, ... ,an) }
Where
a1, a2 … an are attributes (domain variables)
P stands for formula built by inner attributes similar to that of the
predicate calculus.
Predicate Calculus Formula
01
02
03
Set of domain variables and constants
Set of comparison operators eg: < , = , >
Set of connectives eg: ∧ (and), ∨ (or) and ┓ (not)
04
05
Implication eg: x => y, if x is true, then y is true
Quantifiers eg: Existential (∃) and Universal Quantifiers (∀)
∃ x (P(x)) and ∀ x (P(x))
x is a free domain variable instead of bind(opposite to that in TRC).
Example Queries: DRC
o Find the loan–number(l), branch–name(b) and amount(a) for
loans of over $1200.
{ < l, b, a >| < l, b, a > ∈ Loan ∧ a > 1200 }
Branch (branch-name, branch-city, assets)
Customer (customer-name, customer-city)
Account (account-number, branch-name, balance)
Loan (loan-number, branch-name, amount)
Depositor (customer-name, account-number)
Borrower (customer-name, loan-number)
o Find the loan–number for each loan of an amount greater
than $1200.
{ < l >| ∃ b, a (< l, b, a > ∈ Loan ∧ a > 1200 ) }
o Find the names of all customers who have a loan of over $1200.
{ < c >| ∃ l, b, a (< c, l > ∈ Borrower ∧ (< l, b, a > ∈ Loan ∧ a > 1200) ) }
o Find the names of all customers having a loan at the Perryridge
branch and find the loan amount.
{ < c, a >| ∃ l (< c, l > ∈ Borrower ∧ ∃ b (< l, b, a > ∈ Loan
∧ b = “Perryridge”) ) }
Thanks!
Any questions?

More Related Content

Similar to DBMS ppt (1).pptx

Similar to DBMS ppt (1).pptx (20)

4. SQL in DBMS
4. SQL in DBMS4. SQL in DBMS
4. SQL in DBMS
 
3.ppt
3.ppt3.ppt
3.ppt
 
Lllll
LllllLllll
Lllll
 
3. Relational Models in DBMS
3. Relational Models in DBMS3. Relational Models in DBMS
3. Relational Models in DBMS
 
Database system by VISHAL PATIL
Database system by VISHAL PATILDatabase system by VISHAL PATIL
Database system by VISHAL PATIL
 
Relational algebra operations
Relational algebra operationsRelational algebra operations
Relational algebra operations
 
Ch5
Ch5Ch5
Ch5
 
Cs501 rel algebra
Cs501 rel algebraCs501 rel algebra
Cs501 rel algebra
 
Cs501 trc drc
Cs501 trc drcCs501 trc drc
Cs501 trc drc
 
Lec02
Lec02Lec02
Lec02
 
relational model in Database Management.ppt.ppt
relational model in Database Management.ppt.pptrelational model in Database Management.ppt.ppt
relational model in Database Management.ppt.ppt
 
relational algebra
relational algebrarelational algebra
relational algebra
 
Unit04 dbms
Unit04 dbmsUnit04 dbms
Unit04 dbms
 
Data Base Management system relation algebra ER diageam Sql Query -nested qu...
Data Base Management system relation algebra ER diageam Sql Query -nested  qu...Data Base Management system relation algebra ER diageam Sql Query -nested  qu...
Data Base Management system relation algebra ER diageam Sql Query -nested qu...
 
Relation Algebra
Relation AlgebraRelation Algebra
Relation Algebra
 
Ch4
Ch4Ch4
Ch4
 
Relational Database and Relational Algebra
Relational Database and Relational AlgebraRelational Database and Relational Algebra
Relational Database and Relational Algebra
 
14285 lecture2
14285 lecture214285 lecture2
14285 lecture2
 
Intro to relational model
Intro to relational modelIntro to relational model
Intro to relational model
 
Bab 5
Bab 5Bab 5
Bab 5
 

Recently uploaded

Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 

Recently uploaded (20)

Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 

DBMS ppt (1).pptx

  • 1. RELATIONAL CALCULUS - Arpit Kumar Mishra - Sameer Yadav Presented by :-
  • 2. Table of contents 01 02 03 04 Introduction Tuple Relational Calculus (TRC) Types Domain Relational Calculus (DRC)
  • 3. Introduction Why it is called Relational Calculus? 01
  • 4. What is Relational calculus? Relational calculus is a Non-Procedural query language (Declarative Language). In the non-procedural query language, the user is concerned with the details of how to obtain the end results. The relational calculus tells what to do but never explains how to do.
  • 5. Why it is called Relational Calculus? It uses mathematical Predicate Calculus (first-order logic). A predicate is a truth-valued function with arguments. On substituting values for the arguments, the function result in an expression called a proposition. It can be either true or false. Calculus has variables, constants, comparison operator, logical connectives and quantifiers. Expressions in the calculus are called formulas.
  • 6. Types of Relational Calculus 02
  • 7. Relational Calculus Tuple Relational Calculus • Proposed by Codd in the year 1972. • Works on tuples (row). • Example - SQL Domain Relational Calculus • Proposed by Lacroix & Pirotte in the year 1977. • Works on domain of attributes (columns). • Example - QBE
  • 9. Tuple Relational calculus is a Non-Procedural query language. It is used for selecting the tuples in a relation that satisfy the given condition (or predicate). The result of the relation can have one or more tuples. A query in TRC is expressed as: { T | P (T) } or { T | Condition (T) } Where T is the resulting tuples P(T) is the condition used to fetch T.
  • 10. Predicate Calculus Formula 01 02 03 Set of attributes and constants Set of comparison operators eg: < , = , > Set of connectives eg: ∧ (and), ∨ (or) and ┓ (not) 04 05 Implication eg: x => y, if x is true, then y is true Quantifiers eg: Existential (∃) and Universal Quantifiers (∀)
  • 11. Free and Bound variables The use of quantifiers ∃x and ∀x in a formula is said to bind x in the formula. A variable that is not bound is free. The variable ‘ t ’ that appears to the left of ‘|’ must be the only free variable in the formula P(T). All the other tuple variables must be bound using a quantifier. { T | P (T) }
  • 12. Example Queries: TRC o Find the branch–name, loan–number, and amount for loans of over $1200 . { t | t ∈ Loan ∧ t[amount] > 1200 } Branch (branch-name, branch-city, assets) Customer (customer-name, customer-city) Account (account-number, branch-name, balance) Loan (loan-number, branch-name, amount) Depositor (customer-name, account-number) Borrower (customer-name, loan-number)
  • 13. o Find the loan–number for each loan of an amount greater than $1200. { t | ∃s ∈ Loan( t[ loan–number ] = s[ loan–number ] ∧ s[ amount > 1200 ] ) } o Find the names of all customers having a loan at the Perryridge branch. { t | ∃b ∈ Borrower( t[ customer-name ] = b[ customer–name] ∧ ∃s ∈ Loan ( s[ branch-name ] = “Perryridge” ∧ s[ loan–number ] = b[ loan–number ] )) }
  • 14. o Find the names of all customers having a loan, an account, or both at the bank. { t | ∃b ∈ Borrower( t[ customer-name ] = b[ customer–name] ) ∨ ∃d ∈ Depositor( t[ customer-name ] = d[ customer–name] ) } o Find the names of all customers who having a loan and an account at the bank. { t | ∃b ∈ Borrower( t[ customer-name ] = b[ customer–name] ) ∧ ∃d ∈ Depositor( t[ customer-name ] = d[ customer–name] ) }
  • 15. Domain Relational Calculus ( DRC ) not to confuse it with Daulat Ram College. 04
  • 16. Domain Relational calculus is a Non-Procedural query language. DRC uses list of attributes to be selected from relation based on the condition (or predicate). It is same as TRC but differs by selecting the attributes rather than selecting whole tuples. A query in DRC is expressed as: { <a1, a2, a3, ..., an> | P (a1, a2, a3, ... ,an) } Where a1, a2 … an are attributes (domain variables) P stands for formula built by inner attributes similar to that of the predicate calculus.
  • 17. Predicate Calculus Formula 01 02 03 Set of domain variables and constants Set of comparison operators eg: < , = , > Set of connectives eg: ∧ (and), ∨ (or) and ┓ (not) 04 05 Implication eg: x => y, if x is true, then y is true Quantifiers eg: Existential (∃) and Universal Quantifiers (∀) ∃ x (P(x)) and ∀ x (P(x)) x is a free domain variable instead of bind(opposite to that in TRC).
  • 18. Example Queries: DRC o Find the loan–number(l), branch–name(b) and amount(a) for loans of over $1200. { < l, b, a >| < l, b, a > ∈ Loan ∧ a > 1200 } Branch (branch-name, branch-city, assets) Customer (customer-name, customer-city) Account (account-number, branch-name, balance) Loan (loan-number, branch-name, amount) Depositor (customer-name, account-number) Borrower (customer-name, loan-number)
  • 19. o Find the loan–number for each loan of an amount greater than $1200. { < l >| ∃ b, a (< l, b, a > ∈ Loan ∧ a > 1200 ) } o Find the names of all customers who have a loan of over $1200. { < c >| ∃ l, b, a (< c, l > ∈ Borrower ∧ (< l, b, a > ∈ Loan ∧ a > 1200) ) } o Find the names of all customers having a loan at the Perryridge branch and find the loan amount. { < c, a >| ∃ l (< c, l > ∈ Borrower ∧ ∃ b (< l, b, a > ∈ Loan ∧ b = “Perryridge”) ) }