LPI 102-500 Exam - Topic 10 Question 4 Discussion
Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?
B) SELECT order_type,COUNT(*) FROM orders GROUP BY order_type;
A) SELECT order_type,COUNT(*) FROM orders WHERE order_type=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;
Tresa
8 months agoLouvenia
9 months agoNgoc
9 months agoDahlia
9 months agoYvonne
9 months agoRusty
9 months agoLisandra
9 months agoJarod
9 months agoNicolette
9 months agoKanisha
9 months agoJean
10 months ago