Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

i. Q4Convert the following ER-Model of Banks to relational database schema. Identify and mark all the primary keys and foreign keys. (8) ii. iii.

i. Q4Convert the following ER-Model of Banks to relational database schema. Identify and mark all the primary

i. Q4Convert the following ER-Model of Banks to relational database schema. Identify and mark all the primary keys and foreign keys. (8) ii. iii. iv. V. Name Code Address Bank Loan id Loan tyne Amount ER Diagram of a Bank Has Offer Loan Branch id Availed by Custid Branch N Q5: Consider the following Database schema: lives(person-name, street, city) works(person-name, company-name, salary) located-in(company-name, city) manages(person-name, manager-name)) Name N Maintain> N Name M Account Customer. Address Hold by Phone 000 Address Account No Acc Type Balance) For the above schema (the primary key for each relation is denoted by the underlined attribute), provide relational algebra expressions and SQL for the following queries: (10) Find all tuples in works of all persons who work for the City Bank company (which is a specific company in the database). Find the average salary given by each company. Find the name and city of all persons who work for City Bank and earn more than 50,000. Find names of all persons who live in the same city as the company they work for. Find names of all persons who do not work for City Bank. 2 to 2 -25 x 100 = 200 7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

an ER diagram of a bank An ER diagram is a type of flowchart that shows the entities important thing... 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_2

Step: 3

blur-text-image_3

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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students explore these related Programming questions