1. Home
  2. Computer Science MCQs
  3. MySQL
  4. Which MySQL function joins values from multiple rows of a…

Added 2 Nov 2026

Which MySQL function joins values from multiple rows of a group into one string?

  1. CONCAT_WS()
  2. STRING_AGG()
  3. GROUP_CONCAT() Correct answer
  4. JOIN_ROWS()

Correct answer

C. GROUP_CONCAT()

17 views

MCQSEXAM

Explanation

GROUP_CONCAT(), used with GROUP BY, combines values such as product names per order into one comma-separated string. CONCAT_WS joins columns within a single row.

Reference

Asked in: NTS, Technical Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More MySQL MCQs

Practise all MySQL MCQs

Similar MCQs