Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (40 points) Consider the following schema: WORKERS(Wssn: int, wname: string, bdate: date, address: string) WORKON(ssn: int, cno: int, salary: int) COMPANY(cnumber: int, cname: string,

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

1. (40 points) Consider the following schema: WORKERS(Wssn: int, wname: string, bdate: date, address: string) WORKON(ssn: int, cno: int, salary: int) COMPANY(cnumber: int, cname: string, location: string) MANAGER(mssn: int, mname: string, age: int) Note that every company is located at a specific type of location (Chicago, West Lafayette, etc.) and cno is referring to the cnumber in company. Write the following queries in RA, TRC, and DRC. The key fields are underlined. A. (10 points) Retrieve the sons of workers who work at Chicago. B. (10 points) Retrieve the managers' names who work at company number 10 and has an age greater than 30. C. (20 points) Retrieve the name and salary of workers who are not managers

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

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

ISBN: 1844804526, 978-1844804528

More Books

Students also viewed these Databases questions

Question

what is the importance of studying finance to a student .

Answered: 1 week ago

Question

Write a Python program to check an input number is prime or not.

Answered: 1 week ago