Question: ( 2 Marks) Question One Consider the bank database. [0.5+0.5+1=2 Marks] branch(branch name, branch city, assets) customer (customer name, customer street, customer city) loan (loan



( 2 Marks) Question One Consider the bank database. [0.5+0.5+1=2 Marks] branch(branch name, branch city, assets) customer (customer name, customer street, customer city) loan (loan number, branch name, amount) borrower (customer name, loan number) account (account number, branch name, balance) depositor (customer name, account number) Give an expression in the relational algebra for each of the following queries: a. Find all loan numbers with a loan value greater than $50,000. b. Find the names of all depositors who have an account with a value greater than $9,000. c. Find the names of all depositors who have an account with a value greater than $8,000 at the "Uptown" branch. Question Two Explain the distinctions among the terms primary key, candidate key, and super key. 1 Mark Question Three Consider the two relations R and S, as given below: R S A 1 1 A 1 B 2 C2 D 3 D 3 F 4 E 4 E 5 5 Solve the following: a. Runion S. b. R intersection S c. R-S d. S-R [0.25 Point] [0.25 Point] [0.25 Point] [0.25 Point] Question Four Given the relation below named Student_Registration , answer the following questions. S_id S_Name S_Address Subject_opted 401 Adam Noida Bio 402 Alex Panipat Maths 403 Stuart Jammu Maths 404 Adam Noida Physics a. What is the relational schema of the relation Student_Registration? [0.25 Point] b. What is the degree of the giving relation? [0.25 Point) c. Is the column Name an atomic attribute/value? If no, justify your answer? [0.25 Point] d. What are the outputs of the given operations? 1. Osubjectopted=Bio (Student_Registration) [0.25 Point]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
