Question: Consider the relation of as shown below, which shows the result of the query ?Find the names of all customers who have a loan at

Consider the relation of as shown below, which shows the result of the query ?Find the names of all customers who have a loan at the bank.? Rewrite the query to include not only the name, but also the city of residence for each customer. Observe that now customer Jackson no longer appears in the result, even though Jackson does in fact have a loan from the bank.

a. Explain why Jackson does not appear in the result.

b. Suppose that you want Jackson to appear in the result. How would you modify the database to achieve this effect?

c. Again, suppose that you want Jackson to appear in the result.Write a query using an outer join that accomplishes this desire without your having to modify the database.

customer-name loan-number amount L-16 L-93 L-15 L-14 L-17 L-23 L-11 L-17 Adams

customer-name loan-number amount L-16 L-93 L-15 L-14 L-17 L-23 L-11 L-17 Adams Curry Hayes Jackson Jones Smith Smith 1300 500 1500 1500 1000 2000 900 Williams 1000

Step by Step Solution

3.27 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

IIcustomernamecustomercity amount borrower loan customer a Altho... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

16-CS-DB (120).docx

120 KBs Word File

Students Have Also Explored These Related Databases Questions!