Bom dia Fulvio! Então, dessa forma eu já havia tentado, mas dá o seguinte erro: Msg 8120, Level 16, State 1, Line 2 Column 'FREQUENCIA.HrRealizadas' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause. Msg 8120, Level 16, State 1, Line 2 Column 'FREQUENCIA.MinRealizados' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.