Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following schema: Person (pid: integer, name: string). Observer (pid integer); Meteorologist (pid: integer): Consumer (pid: integer); Lives_At (street Address string, city: string, state:

image text in transcribed
image text in transcribed
Consider the following schema: Person (pid: integer, name: string). Observer (pid integer); Meteorologist (pid: integer): Consumer (pid: integer); Lives_At (street Address string, city: string, state: string, pid: integer); Forecast (fid: string, high: integer, low:integer, fdate: date, city: string); Presents (pid: integer, fid: integer); Views (pid integer, fid: integer); Records (pid: integer, oid integer, method: string); This represents a subset of the schema that was used in Project 1. Select the description of the following query which most accurately describes the meaning of the query SELECT DISTINCT P.pid, P.name FROM Person P, Consumer C, Views V Forecast E WHERE c.pid P.pid AND c.pid = V.pid AND V. fid = F. fid AND F.city IN (SELECT L.city FROM Lives At L WHERE p.pid = L.pid) List the consumers who have viewed forecasts for cities in which they live. List the consumers who have presented forecasts for cities in which they live. List the people who have viewed forecasts for cities in which they live. List the consumers who have viewed forecasts for cities in which they do not live. none of these

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

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions

Question

Know how to use reservations systems to inventory demand.

Answered: 1 week ago

Question

Be familiar with the integrative servicescape model.

Answered: 1 week ago