Question 21

Which two are true about transactions in the Oracle Database?
  • Question 22

    Examine this partial query:
    SELECT ch.channel_type, t.month, co.country_code, SUM(s.amount_sold) SALES FROM sales s, times t, channels ch, countries co WHERE s.time_ id = t.time id AND s.country_ id = co. country id AND s. channel id = ch.channel id AND ch.channel type IN ('Direct Sales', 'Internet') AND t.month IN ('2000-09', '2000-10') AND co.country code IN ('GB', 'US') Examine this output:

    Which GROUP BY clause must be added so the query returns the results shown?
  • Question 23

    Which two statements will return the names of the three employees with the lowest salaries?
  • Question 24

    View the Exhibit and examine the structure of ORDER_ITEMS and ORDERS tables.

    You need to remove from the ORDER_ITEMS table those rows that have an order status of 0 or 1 in the ORDERS table.
    Which two DELETE statements are valid (Choose two.)
  • Question 25

    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?