nerdexam
Oracle

1Z0-071 · Question #275

The SALES table has columns PROD_ID and QUANTITY_SOLD of data type NUMBER. Which two queries execute successfully? (Choose two.)

The correct answer is A. SELECT prod_id FROM sales WHERE quantity_sold > 55000 GROUP BY prod_id HAVING C. SELECT COUNT (prod_id) FROM sales WHERE quantity_sold > 55000 GROUP BY prod_id. See the full explanation below for the reasoning.

Question

The SALES table has columns PROD_ID and QUANTITY_SOLD of data type NUMBER. Which two queries execute successfully? (Choose two.)

Options

  • ASELECT prod_id FROM sales WHERE quantity_sold > 55000 GROUP BY prod_id HAVING
  • BSELECT prod_id FROM sales WHERE quantity_sold > 55000 AND COUNT(*) > 10 GROUP BY
  • CSELECT COUNT (prod_id) FROM sales WHERE quantity_sold > 55000 GROUP BY prod_id;
  • DSELECT prod_id FROM sales WHERE quantity_sold > 55000 AND COUNT(*) > 10 GROUP BY
  • ESELECT COUNT(prod_id) FROM sales GROUP BY prod_id WHERE quantity_sold > 55000;

How the community answered

(30 responses)
  • A
    83% (25)
  • B
    3% (1)
  • D
    10% (3)
  • E
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-071 Practice