ASSIGNMENT 1
Question 1: What are the drawbacks of using file system over database management system?
Explain the distinctions among the terms primary key, candidate key, and super key.
Consider the bank database.
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 2: Consider the advisor relation shown in Figure 2, with s_id as the primary key of advisor. Suppose a student can have more than one advisor. Then, would s_id still be a primary key of the advisor relation? If not, what should the primary key of advisor be?
Schema Diagram for University Database