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.

  • Answered by oriattic
  • 0 Comments
  • 10 months ago

This answer is restricted. Please login to view the answer of this question.

Login Now
Leave your Answer:

Click here to submit your answer.

s
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments