This is my code:
select
referido,
count(*) filter (where extract(month from fec_alta) = 3) ::float as Marzo
from usuarios
where fec_alta between '2020-03-01' and '2020-04-30'
group by referido;
Now I need to divide the 2nd line by 76 (that its the sum of the column)
So I have this output
march
true 60
false 16
and I need this output
march
true 78,9 %
false 21,1 %