Como filtrar por valor agrupado em Consulta (SELECT) existente na linguagem de Manipulação de Dados (DML) do Azure SQL/SQL Server
This T-SQL code performs a query on the "f.Moeda_Cotacoes" table. I'll explain each part
CURRENCY, AVG(TAXA_VENDA)
f.Moeda_Cotacoes
GROUP BY:
HAVING AVG(TAXA_VENDA) >
Therefore, the code returns the average of the sell rates ("TAXA_VENDA") grouped by currency ("CURRENCY"), but only includes the results where the average sell rate is greater than 5. This query is useful when you want to filter aggregated data groups based on a specific condition.
Data Scientist and Consultant for Digital and Analytics Solutions
@fabioms