Answered step by step
Verified Expert Solution
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,
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started