Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question#1: - Consider the relational database below, where the primary keys are underlined. Below is an instance of the database. - Give an expression in

Question#1: - Consider the relational database below, where the primary keys are underlined. Below is an instance of the database.

image text in transcribed

- Give an expression in relational algebra for each of the following requests:

(a) Find the person-name and company-name of persons who are working in a city called Glasgow. Output the result to a relation called result.

(b) Find the persons who are working for companies which are located at different cities from the cities in which the persons are living.

(c) Find the lowest salary.

(d) Modify the database so that Jones now lives in Newtown.

(e) Give all managers in this database a 10 percent salary raise, unless the raised salary would be greater than $100,000. In such cases, give only a 3 percent raise.

employee (person-name, street, city) works (person-name, company-name, salary) company (company-name, city) manages (person-name, manager-name) Below is an instance of the database COMPANY companv-na me CI ABC XYZ EMPLOYEE rson-name street Alice Jones Bob Main street El Camino ave Commonwealth ave Arcadia cit Glasgow Hampshire Glasgow Newtowin MANAGES WORKS person-name company-name salary Bob Jones Alice rson-name manager-name Alice 99000 10000 120000 Bob XYZ ABC

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

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

How does preferred stock differ from common stock?

Answered: 1 week ago

Question

Define induction and what are its objectives ?

Answered: 1 week ago

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago