2
Good afternoon to you I have the following query
SELECT COUNT (SolID) as quant, UsuNome as gerador
FROM Solicitacao
INNER JOIN Usuario ON Solicitacao.UsuIDAtendenteViaFone = Usuario.UsuID
WHERE UsuIDGrupo = 2655
AND DATEPART(m, SolData) = DATEPART(m, DATEADD(m, 0, getdate()))
AND DATEPART(yyyy, SolData) = DATEPART(yyyy, DATEADD(m, 0, getdate()))
GROUP BY UsuNome order by quant desc
I need the generator column to return only the first name.
Thanks man, it’s really inexperienced, hehehehe
– Vinícius Fernandes