Hi,
In my Sql database, I have tables
1 Account_Customer -AccountID -CustomerID -Account_CustomerID
2 Accounts -AccountID -Balance
3 Customers -CustomerID -Name -Sex -Age
4 Loans -LoanID -Amount -BranchName
5 Loan_Customer -Loan_CustomerID -LoanID -CustomerID
and I want to write a stored procedure for Listing customers together with their number of accounts, total account balances, number of loans, and total loan amounts, living in a given city, having given sex and age, and having accounts and/or loans in a given branch.
I can do the number of accounts and total account balances in my program but I need a stored procedure for my assignment.
Any help would be greatly appreciated.