Question 76

Which two statements are true about substitution variables? (Choose two.)
  • Question 77

    View the exhibit and examine the descriptions of the DEPT and LOCATIONS tables.

    You want to update the CITY column of the DEPT table for all the rows with the corresponding value in the CITY column of the LOCATIONS table for each department.
    Which SQL statement would you execute to accomplish the task?
  • Question 78

    Evaluate the following SQL statement:
    SQL> select cust_id, cust_last_name "Last name"
    FROM customers
    WHERE country_id = 10
    UNION
    SELECT cust_id CUST_NO, cust_last_name
    FROM customers
    WHERE country_id = 30
    Identify three ORDER BY clauses either one of which can complete the query. (Choose three.)
  • Question 79

    View the exhibit and examine the ORDERStable.

    The ORDERStable contains data and all orders have been assigned a customer ID. Which statement would add a NOTNULLconstraint to the CUSTOMER_IDcolumn?
    ALTER TABLE orders
  • Question 80

    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?