Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following relational schema (primary keys are underlined): Person ( ssn, pn, age, city); a person's name and age, and the city he/she lives

Consider the following relational schema (primary keys are underlined):

Person ( ssn, pn, age, city); a person's name and age, and the city he/she lives in Company ( cn, city); a companys name and the city it is located in

WorksFor ( ssn, cn, comp); the company a person works for and his/her compensation from this particular company (a person may work for several companies) Express the following queries in relational algebra.

You may use P,C, and W as shorthand for Person, Company , and Works For respectively.

c)

Some companies dont hire young people. Find the names of the companies that do not employ anyone younger than 25 years old.

d)

Some companies are really big ... Find the names of the companies that employ someone from every single city recorded in the Person table.

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

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions