LPIC-1 Exam 102, Part 2 of 2, version 5.0 102-500 Question # 29 Topic 3 Discussion

LPIC-1 Exam 102, Part 2 of 2, version 5.0 102-500 Question # 29 Topic 3 Discussion

102-500 Exam Topic 3 Question 29 Discussion:
Question #: 29
Topic #: 3

Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?


A.

SELECT order_type,COUNT(*) FROM orders WHERE order_type=order_type;


B.

SELECT order_type,COUNT(*) FROM orders GROUP BY order_type;


C.

COUNT(SELECT order_type FROM orders);


D.

SELECT COUNT(*) FROM orders ORDER BY order_type;


E.

SELECT AUTO_COUNT FROM orders COUNT order_type;


Get Premium 102-500 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.