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

Viewing Page 14 of 77

Examine the data in the CUST_NAME column of the CUSTOMERS table.



You need to display customers' second names where the second name starts with "Mc" or "MC". Which query gives the required output?

  1. Option A
  2. Option B
  3. Option C
  4. Option D

Answer(s): C



View the exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS and TIMES tables.


The PROD_ID column is the foreign key in the SALES table, which references the PRODUCTS table.

Similarly, the CUST_ID and TIME_ID columns are also foreign keys in the SALES table referencing the CUSTOMERS and TIMES tables, respectively.

Evaluate the following CREATE TABLE command:

CREATE TABLE new_sales (prod_id, cust_id, order_date DEFAULT SYSDATE)
AS
SELECT prod_id, cust_id, time_id
FROM sales;

Which statement is true regarding the above command?

  1. The NEW_SALES table would get created and all the NOT NULL constraints defined on the specified columns would be passed to the new table.
  2. The NEW_SALES table would not get created because the DEFAULT value cannot be specified in the column definition.
  3. The NEW_SALES table would not get created because the column names in the CREATE TABLE command and the SELECT clause do not match.
  4. The NEW_SALES table would get created and all the FOREIGN KEY constraints defined on the specified columns would be passed to the new table.

Answer(s): A



Which two statements are true regarding the USING and ON clauses in table joins?

  1. Both USING and ON clauses can be used for equijoins and nonequijoins.
  2. A maximum of one pair of columns can be joined between two tables using the ON clause.
  3. The ON clause can be used to join tables on columns that have different names but compatible data types.
  4. The WHERE clause can be used to apply additional conditions in SELECT statements containing the ON or the USING clause.

Answer(s): C,D



Which three statements are true regarding group functions? (Choose three.)

  1. They can be used on columns or expressions.
  2. They can be passed as an argument to another group function.
  3. They can be used only with a SQL statement that has the GROUP BY clause.
  4. They can be used on only one column in the SELECT clause of a SQL statement.
  5. They can be used along with the single-row function in the SELECT clause of a SQL statement.

Answer(s): A,B,E


Reference:

https://www.safaribooksonline.com/library/view/mastering-oracle-sql/0596006322/ch04.html



Which three statements are true? (Choose three.)

  1. The data dictionary is created and maintained by the database administrator.
  2. The data dictionary views consist of joins of dictionary base tables and user-defined tables.
  3. The usernames of all the users including database administrators are stored in the data dictionary.
  4. The USER_CONS_COLUMNS view should be queried to find the names of columns to which constraints apply.
  5. Both USER_OBJECTS and CAT views provide the same information about all objects that are owned by the user.
  6. Views with the same name but different prefixes, such as DBA, ALL and USER, reference the same base tables from the data dictionary.

Answer(s): C,D,F


Reference:

https://docs.oracle.com/cd/B10501_01/server.920/a96524/c05dicti.htm



Viewing Page 14 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