CSC265 Database Management System

Database Management SystemTU Board 2080

Consider a banking database with three tables and primary keys underlined as given below: Customer(CustomerID, CustomerName, Address, Phone, Email) Owns(CustomerID, AccountNumber)…

10

Consider a banking database with three tables and primary keys underlined as given below:

Customer(CustomerID, CustomerName, Address, Phone, Email)

Owns(CustomerID, AccountNumber)

Account(AccountNumber, AccountType, Balance)

Write both relational algebra and SQL queries:

  • a) To display name of all customers who live in "Kathmandu".

  • b) To count total number of customers.

  • c) To find name of those customers who have balance greater than or equal to 100000.

  • d) To find average balance of each account type.

This question was also asked in TU Board 2080 (new course). Read the worked answer →

Discussion

Loading…

More Database Management System questions

All Database Management System old questions