Oracle 1Z0-071 Exam (page: 10)
Oracle Database SQL
Updated on: 01-Sep-2025

Viewing Page 10 of 77

You are designing the structure of a table in which two columns have the specifications:

COMPONENT_ID – must be able to contain a maximum of 12 alphanumeric characters and must uniquely identify the row

EXECUTION_DATETIME – contains Century, Year, Month, Day, Hour, Minute, Second to the maximum precision and is used for calculations and comparisons between components.
Which two options define the data types that satisfy these requirements most efficiently? (Choose two.)

  1. The EXECUTION_DATETIME must be of INTERVAL DAY TO SECOND data type.
  2. The EXECUTION_DATETIME must be of TIMESTAMP data type.
  3. The EXECUTION_DATETIME must be of DATE data type.
  4. The COMPONENT_ID must be of ROWID data type.
  5. The COMPONENT_ID must be of VARCHAR2 data type.
  6. The COMPONENT_ID column must be of CHAR data type.

Answer(s): C,F



You want to display the date for the first Monday of the next month and issue the following command:


What is the outcome?

  1. In generates an error because rrrr should be replaced by rr in the format string.
  2. It executes successfully but does not return the correct result.
  3. It executes successfully and returns the correct result.
  4. In generates an error because TO_CHAR should be replaced with TO_DATE.
  5. In generates an error because fm and double quotation marks should not be used in the format string.

Answer(s): C



Which two statements are true regarding the GROUP BY clause in a SQL statement? (Choose two.)

  1. You can use column alias in the GROUP BY clause.
  2. Using the WHERE clause after the GROUP BY clause excludes the rows after creating groups.
  3. The GROUP BY clause is mandatory if you are using an aggregate function in the SELECT clause.
  4. Using the WHERE clause before the GROUP BY clause excludes the rows before creating groups.
  5. If the SELECT clause has an aggregate function, then those individual columns without an aggregate function in the SELECT clause should be included in the GROUP BY cause.

Answer(s): D,E



Examine the commands used to create DEPARTMENT_DETAILS and COURSE_DETAILS tables:


You want to generate a list of all department IDs along with any course IDs that may have been assigned to them. Which SQL statement must you use?

  1. SELECT d.department_id, c.course_id FROM department_details d RIGHT OUTER JOIN course_details c ON (d.department_id=c. department_id);
  2. SELECT d.department_id, c.course_id FROM department_details d LEFT OUTER JOIN course_details c ON (d.department_id=c. department_id);
  3. SELECT d.department_id, c.course_id FROM course_details c LEFT OUTER JOIN department_details d ON (c.department_id=d. department_id);
  4. SELECT d.department_id, c.course_id FROM department_details d RIGHT OUTER JOIN course_details c ON (c.department_id=d. department_id);

Answer(s): B



Which two tasks can be performed by using Oracle SQL statements? (Choose two.)

  1. changing the password for an existing database user
  2. connecting to a database instance
  3. querying data from tables in different databases
  4. starting up a database instance
  5. executing operating system (OS) commands in a session

Answer(s): A,C


Reference:

http://www.techonthenet.com/oracle/password.php https://docs.oracle.com/cd/B28359_01/server.111/b28324/tdpii_distdbs.htm



Viewing Page 10 of 77



Share your comments for Oracle 1Z0-071 exam with other users:

Saravana Kumar TS 12/8/2023 9:49:00 AM

question: 93 which statement is true regarding the result? sales contain 6 columns and values contain 7 columns so c is not right answer.
INDIA