Customer (cid, name, surname, city, address, phone) Account (aid, cid, amount, currency, created) Deposit (did, aid, cid, amount, date) Withdraw(wid, aid, cid, amount, date) a) Find all deposits to an account owned by a customer from Koper in the amount which is more than 50000. Use relational algebra and calculus. b) Write an SQL statement that prints the IDs and amounts of the accounts that have in the last year more than 100 deposits by customers from Sicily with an amount that is more than 10000.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter1: An Introduction To Visual Studio 2017 And Visual Basic
Section: Chapter Questions
Problem 3MQ5: What is the purpose of an access key?
icon
Related questions
Question
Customer (cid, name, surname, city, address, phone)
Account (aid, cid, amount, currency, created)
Deposit (did, aid, cid, amount, date)
Withdraw(wid, aid, cid, amount, date)
Transcribed Image Text:Customer (cid, name, surname, city, address, phone) Account (aid, cid, amount, currency, created) Deposit (did, aid, cid, amount, date) Withdraw(wid, aid, cid, amount, date)
a) Find all deposits to an account owned by a customer from Koper in the amount
which is more than 50000. Use relational algebra and calculus.
b) Write an SQL statement that prints the IDs and amounts of the accounts that
have in the last year more than 100 deposits by customers from Sicily with an amount
that is more than 10000.
Transcribed Image Text:a) Find all deposits to an account owned by a customer from Koper in the amount which is more than 50000. Use relational algebra and calculus. b) Write an SQL statement that prints the IDs and amounts of the accounts that have in the last year more than 100 deposits by customers from Sicily with an amount that is more than 10000.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
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
Management Of Information Security
Management Of Information Security
Computer Science
ISBN:
9781337405713
Author:
WHITMAN, Michael.
Publisher:
Cengage Learning,
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage