Customer (cid, name, surname, city, address, phone); Account (aid, cid, amount, created, comment); Transfer (tid, from_aid, to_aid, cid, amount, date, descr); a) Write a query that selects the transfers done by customers from Izola in the last month. For each of the selected transfers, print the target account IDs (to_aid), the amount and the date. Use relational algebra! b) Write a query that finds the names, surnames, and phone numbers of customers who own an account to which there were transfers from more than 1000 source accounts (identified by from_aid) in the previous year. Use SQL!

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter8: Working With Advanced Functions
Section: Chapter Questions
Problem 3.2CP
icon
Related questions
Question
Customer (cid, name, surname, city, address, phone);
Account (aid, cid, amount, created, comment);
Transfer (tid, from_aid, to_aid, cid, amount, date, descr);
Transcribed Image Text:Customer (cid, name, surname, city, address, phone); Account (aid, cid, amount, created, comment); Transfer (tid, from_aid, to_aid, cid, amount, date, descr);
a) Write a query that selects the transfers done by customers from Izola in the last
month. For each of the selected transfers, print the target account IDs (to_aid), the
amount and the date. Use relational algebra!
b) Write a query that finds the names, surnames, and phone numbers of
customers who own an account to which there were transfers from more than 1000
source accounts (identified by from_aid) in the previous year. Use SQL!
Transcribed Image Text:a) Write a query that selects the transfers done by customers from Izola in the last month. For each of the selected transfers, print the target account IDs (to_aid), the amount and the date. Use relational algebra! b) Write a query that finds the names, surnames, and phone numbers of customers who own an account to which there were transfers from more than 1000 source accounts (identified by from_aid) in the previous year. Use SQL!
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
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 with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage