Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

****please don't use handwriting and picture Q1: Consider the bank database. [0.5+0.5+1=2 Marks] branch(branch name, branch city, assets) customer (customer name, customer street, customer city)

****please don't use handwriting and picture

Q1:

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.

Q2:

Consider the two relations R and S, as given below:

R S

A

1

B

2

D

3

F

4

E

5

A

1

C

2

D

3

E

4

Solve the following:

  1. R union S.
  2. R intersection S
  3. R-S
  4. S-R

Q3:

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

  1. What is the relational schema of the relation Student_Registration? [0.25 Point]
  2. What is the degree of the giving relation? [0.25 Point]
  3. Is the column Name an atomic attribute/value? If no, justify your answer? [0.25 Point]
  4. What are the outputs of the given operations?
  1. Subjectopted=Bio (Student_Registration) [0.25 Point]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions