Uploaded by M Lo

Quiz 8 - Fundamentals of database systems - Relational algebra - Relational calculus

advertisement
Quiz # 8
Consider the following relations of banking system
Customer (ID, name, City,street)
Account(Account#,Open_date, Balance, ID)
Transaction(AcNo, date, amount, type)
Please note there are two type of transactions : withdraw, deposit.
Write queries using the Relational Algebra on the above schema to:
Q1) Retrieve the names of customers who lives in 'Doha' and have no transactions on 31/3/2019
Q2) Retrieve the average balance of the accounts whose customers live in 'Alkhor'
Q3) Retrieve the names of customers who have opened accounts on 1/1/2020.
Download