Question 181

Which three tasks can be performed by DDL statements?
  • Question 182

    View the Exhibit and examine the structure of the PRODUCTtable.

    Which two tasks would require subqueries? (Choose two.)
  • Question 183

    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?
  • Question 184

    The customers table has the following structure:

    You need to write a query that does the following tasks:
    1. Display the first name and tax amount of the customers. Tax is 5% of their credit limit.
    2. Only those customers whose income level has a value should be considered.
    3. Customers whose tax amount is null should not be considered.
    Which statement accomplishes all the required tasks?
    SELECT cust_first_name, cust_credit_limit * .05 AS TAX_AMOUNT
  • Question 185

    Which three statements are true? (Choose three.)