QuestionQ227

VerifiedUsing Single-Row Functions to Customize Output

You are currently in Singapore and are connected to a remote database in Chicago. You issue this command:

Exhibit:

Question Image

PROMOTIONS is the public synonym for the public database link to the PROMOTIONS table. What is the result?

Explanation

In a distributed SQL statement, Oracle SYSDATE returns the date and time from the operating system of the local database. Subtracting promo_begin_date from that value returns the elapsed number of days, and ROUND(..., 0) validly rounds it to a whole number. The calculation is therefore based on the current Singapore date and time.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!