You must apply some aggregate function ( COUNT() , MIN() , MAX() , SUM() , ...) to each column in SELECT that are not part of GROUP BY .
For example, your query might look like
SELECT TEST_DESC, MAX(MEASUREMENT) MAX_MEASUREMENT, MAX(LL) MAX_LL, MAX(UL) MAX_UL FROM T_TABLE2 GROUP BY TEST_DESC
Another syntactically valid use is to get a list of different values
SELECT TEST_DESC, MEASUREMENT, LL, UL FROM T_TABLE2 GROUP BY TEST_DESC, MEASUREMENT, LL, UL
which is equivalent
SELECT DISTINCT TEST_DESC, MEASUREMENT, LL, UL FROM T_TABLE2
If you were more specific in your question about what exactly you are trying to achieve with this request, then the answer could satisfy your specific needs.
source share