I've hit a complete blank here.
I have a schema that has two relations. One is loan which has the attributes loan-number, branch-name and amount. The second relation is borrower which has customer-name and loan-number as its attributes. These two relations are linked via loan-number.
How would I go about writing a query in relational algebra form if I wanted to find the names of all customers with a balance less than 10000.
Out of curiosity how would I also do this as a basic SQL query.