nerdexam
Zend

200-530 · Question #496

Martin works as a Database Administrator for MTech Inc. He designs a database that has a table named Products. He wants to create a report listing different product categories. He does not want to…

The correct answer is C. SELECT DISTINCT Product_No, Prod_Category ,FROM Products. See the full explanation below for the reasoning.

Question

Martin works as a Database Administrator for MTech Inc. He designs a database that has a table named Products. He wants to create a report listing different product categories. He does not want to display any duplicate row in the report. Which of the following SELECT statements will Martin use to create the report?

Options

  • ASELECT Product_No, Prod_Category FROM Products GROUP BY Product_No;
  • BSELECT Product_No, Prod_Category FROM Products;
  • CSELECT DISTINCT Product_No, Prod_Category ,FROM Products;
  • DSELECT Product_No, Prod_Category FROM Products GROUP BY Product_No ORDER BY

How the community answered

(34 responses)
  • A
    18% (6)
  • B
    6% (2)
  • C
    71% (24)
  • D
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice