Free Oracle 1Z0-071 Exam Braindumps (page: 18)

Evaluate the following query:
SQL> SELECT TRUNC (ROUND(156.00, -1),-1)
FROM DUAL;

What would be the outcome?

  1. 150
  2. 200
  3. 160
  4. 16
  5. 100

Answer(s): C


Reference:

https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions135.htm https://docs.oracle.com/cd/B28359_01/olap.111/b28126/dml_functions_2127.htm



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



Viewing page 18 of 95
Viewing questions 69 - 72 out of 380 questions



Post your Comments and Discuss Oracle 1Z0-071 exam prep with other Community members:

1Z0-071 Exam Discussions & Posts