Multiple choice technology databases

You need to perform certain data manipulation operations through a view called EMP_DEPT_VU, which you previously created. You want to look at the definition of the view (the SELECT statement on which the view was create.) How do you obtain the definition of the view?

  1. Use the DESCRIBE command in the EMP_DEPT VU view.

  2. Use the DEFINE VIEW command on the EMP_DEPT VU view.

  3. Query the USER_VIEWS data dictionary view to search for the EMP_DEPT_VU view.

  4. Query the USER_SOURCE data dictionary view to search for the EMP_DEPT_VU view.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

To view a view's definition in Oracle, query USER_VIEWS data dictionary view, which stores the SELECT statement for each view. The TEXT column contains the view definition. DESCRIBE only shows column structure, not the SELECT statement. DEFINE VIEW is not a valid command. USER_SOURCE contains stored procedure/function code, not view definitions.