Multiple choice

Which of the following methods retrieves the maximum number of columns that a database allows in a GROUP BY clause?

  1. getMaxColumnsInGroupBy()

  2. getMaxColsInGroupBy()

  3. getMaxColumnInGroupBy()

  4. getMaxGroupByColumns()

  5. getMaxColumnsAllowedInGroupBy()

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is the correct choice. getMaxColumnsInGroupBy() method is present in the DatabaseMetaData interface in Java.