branch (branch_name, branch_city, assets) customer (customer_name, customer_street, cust omer_city) loan (loan_number, branch_naте, атоиnt) borrower (сustoтer name, loan питber) ассоunt (аccouиnt_лumber, branchлaтe, balance ) depositor (custoтer-лame, accounnumber) Figure 5.21 Banking database for Exercise 5.6.

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 3RA
icon
Related questions
Question

Consider the bank database of Figure 5.21. Write an SQL trigger to carry out
the following action: On delete of an account, for each customer-owner of the
account, check if the owner has any remaining accounts, and if she does not,
delete her from the depositor relation

branch (branch_name, branch_city, assets)
customer (customer_name, customer_street, cust omer_city)
loan (loan_number, branch_naте, атоиnt)
borrower (сustoтer name, loan питber)
ассоunt (аccouиnt_лumber, branchлaтe, balance )
depositor (custoтer-лame, accounnumber)
Figure 5.21 Banking database for Exercise 5.6.
Transcribed Image Text:branch (branch_name, branch_city, assets) customer (customer_name, customer_street, cust omer_city) loan (loan_number, branch_naте, атоиnt) borrower (сustoтer name, loan питber) ассоunt (аccouиnt_лumber, branchлaтe, balance ) depositor (custoтer-лame, accounnumber) Figure 5.21 Banking database for Exercise 5.6.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Intermediate SQL concepts
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage