Question 46

See the Exhibit and examine the structure of the PROMOTIONS table:

Using the PROMOTIONS table,
you need to find out the average cost for all promos in the range $0-2000 and $2000-5000 in category A.
You issue the following SQL statements:

What would be the outcome?
  • Question 47

    View the exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTSand TIMEStables.

    The PROD_IDcolumn is the foreign key in the SALEStables, which references the PRODUCTStable.
    Similarly, the CUST_IDand TIME_IDcolumns are also foreign keys in the SALEStable referencing the CUSTOMERSand TIMEStables, respectively.
    Evaluate the following CREATE TABLEcommand:
    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?
  • Question 48

    Evaluate the following two queries:

    Which statement is true regarding the above two queries?
  • Question 49

    Which three privileges can be restricted to a subset of columns in a table? (Choose three.) ALTER
  • Question 50

    Which three statements execute successfully?
    A)

    B)

    C)

    D)

    E)

    F)

    G)