1z0-071 Exam Question 181

Examine the structure of the BOOKS_TRANSACTIONS table:

Examine the SQL statement:

Which statement is true about the outcome?
  • 1z0-071 Exam Question 182

    View the Exhibit and examine the structure of the ORDER_ITEMS table.

    You must select the ORDER_ID of the order that has the highest total value among all the orders in the ORDER_ITEMS table.
    Which query would produce the desired result?
    SELECT order_id
  • 1z0-071 Exam Question 183

    Examine this SELECT statement and view the Exhibit to see its output:

    SELECT constraints_name, constraints_type, search_condition, r_constraints_name, delete_rule, status, FROM user_constraints WHERE table_name = 'ORDERS'; Which two statements are true about the output? (Choose two.)
  • 1z0-071 Exam Question 184

    Which three statements are true about defining relations between tables in a relational database?
  • 1z0-071 Exam Question 185

    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 tables, 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?