Given below is a list of functions and their purpose in random order.
Function Purpose
1)NVL a) Used for evaluating NOT NULL and NULL values
2)NULLIF b) Used to return the first non- null values in a list of expressions
3)COALESCE c) Used to compare two expressions. If both are same, it returns NULL; otherwise, it returns
only the first expression.
4)NVL2 d) Used to convert NULL values to actual values
Identify the correct combination of functions and their usage.
The ORDERS table belongs to the user OE. OE has granted the SELECT privilege on the ORDERS table to
the user HR. Which statement would create a synonym ORD so that HR can execute the following query
successfully?
SELECT * FROM ord;
The following are the steps for a correlated subquery, listed in random order:
1) The WHERE clause of the outer query is evaluated.
2) The candidate row is fetched from the table specified in the outer query.
3) The procedure is repeated for the subsequent rows of the table, till all the rows are processed.
4) Rows are returned by the inner query, after being evaluated with the value from the candidate row in the
outer query.
Identify the option that contains the steps in the correct sequence in which the Oracle server evaluates a
correlated subquery.
The user SCOTT who is the owner of ORDERS and ORDER_ITEMS tables issues the following GRANT
command:
GRANT ALL
ON orders, order_items
TO PUBLIC;
What correction needs to be done to the above statement?