nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #119

LFCS Question #119: Real Exam Question with Answer & Explanation

Sign in or unlock LFCS to reveal the answer and full explanation for question #119. The question stem and answer options stay visible for context.

Submitted by rohit_dlh· Apr 18, 2026Operation of Running Systems

Question

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

Options

  • ASELECT order_type,COUNT(*) FROM orders WHERE order_type=order_type;
  • BSELECT order_type,COUNT(*) FROM orders GROUP BY order_type;
  • CCOUNT(SELECT order_type FROM orders);
  • DSELECT COUNT(*) FROM orders ORDER BY order_type;
  • ESELECT AUTO_COUNT FROM orders COUNT order_type;

Unlock LFCS to see the answer

You've previewed enough free LFCS questions. Unlock LFCS for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#SQL#Database Querying#GROUP BY clause#COUNT function
Full LFCS PracticeBrowse All LFCS Questions