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
10 months agoLouvenia
10 months agoNgoc
10 months agoDahlia
10 months agoYvonne
11 months agoRusty
11 months agoLisandra
11 months agoJarod
11 months agoNicolette
11 months agoKanisha
11 months agoJean
11 months ago