Consider a banking database with three labels and primary key underlined as given below:

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

Borrows (CustomerID, LoanNumber )

Loan ( LoanNumber , LoanType, Amount )

Write both relational algebra and SQL queries:

  1. To display name of all customers who live in “Lalitpur” in ascending order of name.
  2. To count total number of customers having loan at the bank.
  3. To find name of those customers who have loan amount greater than or equal to 500000.
  4. To find average loan amount of each accoun’t type.

 

 

  • Answered by
  • 0 Comments
  • 5 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
Oldest
Newest Most Voted
Inline Feedbacks
View all comments