1z0-071 Exam Question 26

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

The PROD_IDcolumn is the foreign key in the SALEStable referencing the PRODUCTStable.
The CUST_IDand TIME_IDcolumns are also foreign keys in the SALEStable referencing the CUSTOMERS and TIMEStables, 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?
  • 1z0-071 Exam Question 27

    View the Exhibit and examine the data in the PRODUCTS table.

    You must display product names from the PRODUCTS table that belong to the 'Software/other' category with minimum prices as either $2000 or $4000 and with no unit of measure.
    You issue this query:

    Which statement is true?
  • 1z0-071 Exam Question 28

    You execute these commands:
    CREATE TABLE customers (customer id INTEGER, customer name VARCHAR2 (20));
    INSERT INTO customers VALUES (1,'Custmoer1 ');
    SAVEPOINT post insert;
    INSERT INTO customers VALUES (2, 'Customer2 ');
    <TODO>
    SELECTCOUNT (*) FROM customers;
    Which two, used independently, can replace <TODO> so the query retums 1?
  • 1z0-071 Exam Question 29

    Evaluate the following two queries:

    Which statement is true regarding the above two queries?
  • 1z0-071 Exam Question 30

    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 (&apos;Direct Sales&apos;, &apos;Internet&apos;)
    AND t.month IN (&apos;2000-09&apos;, &apos;2000-10&apos;)
    AND co.country code IN (&apos;GB&apos;, &apos;US&apos;)
    Examine this output:

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