Question: Decorrelation: a. Write a nested query on the relation account to find for each branch with name starting with B, all accounts with the maximum
Decorrelation:
a. Write a nested query on the relation account to find for each branch with name starting with “B”, all accounts with the maximum balance at the branch.
b. Rewrite the preceding query, without using a nested subquery; in other words, decorrelate the query.
c. Give a procedure (similar that that described in Section 14.4.5) for decorrelating such queries.
Step by Step Solution
3.43 Rating (166 Votes )
There are 3 Steps involved in it
a The nested query is as follows select Sacount number from account S where Sbranch name like B and ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
16-CS-DB (314).docx
120 KBs Word File
