1z1-071 Exam Question 306

View the Exhibit and examine the structure of the PRODUCTS table. (Choose the best answer.)

You must display the category with the maximum number of items.
You issue this query:
SQL > SELECT COUNT(*), prod_category_id
FROM products
GROUP BY prod_category_id
HAVING COUNT(*) = (SELECT MAX(COUNT(*)) FROM porducts);
What is the result?
  • 1z1-071 Exam Question 307

    Examine these requirements:
    1. Display book titles for books purchased before January 17, 2007 costing less than 500 or more than 1000.
    2. Sort the titles by date of purchase, starting with the most recently purchased book.
    Which two queries can be used?
  • 1z1-071 Exam Question 308

    View the exhibits and examine the structures of the COSTSand PROMOTIONStables.


    Evaluate the following SQL statement:
    SQL> SELECT prod_id FROM costs
    WHERE promo_id IN (SELECT promo_id FROM promotions
    WHERE promo_cost < ALL
    ( SELECT MAX(promo_cost) FROM promotions
    GROUP BY (promo_end_date-
    promo_begin_date)));
    What would be the outcome of the above SQL statement?
  • 1z1-071 Exam Question 309

    Examine the description of the EMP_DETAILS table given below:

    Which two statements are true regarding SQL statements that can be executed on the EMP_DETAIL TABLE?
  • 1z1-071 Exam Question 310

    Examine the description of the sales table.
    The sales table has 55,000 rows.
    Examine this statements:
    Which two statements are true?