Translate the relational algebra expression in (c) into a most directly corresponding SQL query.

Suppose a database has the following schema:
Trip(fromAddrId: INTEGER, toAddrId: INTEGER, date: DATE)
Address(id: INTEGER, street: STRING, townState: STRING)


SELECT A.street
FROM (SELECT * FROM Address WHERE townState='Stony Brook NY') A,
(SELECT * FROM Trip WHERE date='05/14/02') T
WHERE A.id=T.toAddrId

Computer Science & Information Technology

You might also like to view...

Which of the following X.25 features allows the DTEs to specify the size of the packet and other parameters?

a. throughput class negotiation b. reverse charging c. flow control negotiation d. none of the above

Computer Science & Information Technology

A field

A) is a complete set of data for an entity. B) indicates where data starts on a new printed page. C) defines the range of data to print. D) is an individual piece of data, such as a last name.

Computer Science & Information Technology

If the numeric values in cells B1:B9 are selected, and row 10 is empty when the AutoSum button is clicked, the sum of the range (B1:B9) appears in cell ________

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

All walls should have a 1-hour minimum fire rating

Indicate whether the statement is true or false.

Computer Science & Information Technology