1z1-071 Exam Question 231

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 referencing the PRODUCTS table.
The CUST_ID and TIME_ID columns are also foreign keys in the SALES table referencing the CUSTOMERS and TIMES tables, respectively.
Examine this 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?
  • 1z1-071 Exam Question 232

    Examine the structure of the PROMOTIONS table: (Choose the best answer.)

    Management requires a report of unique promotion costs in each promotion category.
    Which query would satisfy this requirement?
  • 1z1-071 Exam Question 233

    Which two statements are true about the rules of precedence for operators? (Choose two.)
  • 1z1-071 Exam Question 234

    View the exhibit and examine the data in the PROJ_TASK_DETAILS table. (Choose the best answer.)

    The PROJ_TASK_DETAILS table stores information about project tasks and the relation between them.
    The BASED_ON column indicates dependencies between tasks.
    Some tasks do not depend on the completion of other tasks.
    You must generate a report listing all task IDs, the task ID of any task upon which it depends and the name of the employee in charge of the task upon which it depends.
    Which query would give the required result?
  • 1z1-071 Exam Question 235

    View the Exhibit and examine the structure of the ORDERS table. (Choose the best answer.)

    You must select ORDER_ID and ORDER_DATE for all orders that were placed after the last order placed by CUSTOMER_ID 101.
    Which query would give you the desired result?