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)- A18% (6)
- B6% (2)
- C71% (24)
- D6% (2)
Community Discussion
No community discussion yet for this question.