QuestionQ163

VerifiedUsing Single-Row Functions to Customize Output

You are presently located in Singapore and are connected to a remote database in Chicago.

You execute the following 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 evaluates SYSDATE using the local database’s operating-system date and time. The date subtraction returns elapsed days, ROUND(..., 0) rounds that value to a whole number of days, and the WHERE condition correctly retains promotions that started more than two years ago. The result therefore uses the current Singapore date and time.

Learn more

Community Discussion

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