READ Free Dumps For Oracle- 1z0-001
Question ID 8190 | You want to retrieve the employee details from the emp table and process them in PL/SQL block. Which type of variable do you create in the PL/SQL block to retrieve all the rows and columns using a single select statement from the emp table? |
Option A | PL/SQL record. |
Option B | %ROWTYPE variable. |
Option C | PL/SQL table of scalars. |
Option D | PL/SQL table of records.D |
Correct Answer | D |
Question ID 8191 | You need to analyze how long your orders to be shipped from the date that the order is placed. To do this you must create a report that displays the customer number, date order, date shipped and the number of months in whole numbers from the time the order is placed to the time the order is shipped. Which statement produces the required results? |
Option A | SELECT custid, orderdate, shipdate, ROUND(MONTHS_BETWEEN(shipdate,orderdate)) "Time Taken" FROM ord; |
Option B | SELECT custid, orderdate, shipdate, ROUND(DAYS_BETWEEN(shipdate,orderdate))/30. FROM ord; |
Option C | SELECT custid, orderdate, shipdate, ROUND OFF (shipdate-orderdate) "Time Taken" FROM ord; |
Option D | SELECT custid, orderdate, shipdate, MONTHS_BETWEEN (shipdate,orderdate) "Time Taken". FROM ord; |
Correct Answer | A |