Question: Q2 (15 marks): Consider the following database schema. Opening Account Number, OpenDate, OpeningBalance, TotalDeposit, TotalWithdrawal, ClosingBalance, ClosingBalanceDate, LastDepositDate, Last WithdrawalDate) Deposit (AccountNumber, Date, Amount, Mode)

Q2 (15 marks): Consider the following database schema. Opening Account Number, OpenDate, OpeningBalance, TotalDeposit, TotalWithdrawal, ClosingBalance, ClosingBalanceDate, LastDepositDate, Last WithdrawalDate) Deposit (AccountNumber, Date, Amount, Mode) Withdrawal (Account Number, Date, Amount, Mode) Account Holder (AccountNumber, Name, BuildingNumber, AreaName, StreetNumber, CityCode, PinCode, StateCode) Cities (CityCode, CityName, StateCode) State (StateCode, StateName) Answer to the following questions and write down the queries in Relational Algebra: (a) All the Account Numbers having neither any deposit nor any withdrawal in December, 2021. (b) Those Account Numbers and Names of Account Holders from city Chittagong whose opening balance is more than $ 10000. (c) The City Names where there is no Account Holders. (d) All those Account Numbers, which do not have any transaction after opening. (e) All the Account Numbers who belong to Dhaka
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
