Hi,
Having this query
select
brand as brand,
count(case when status = 1 then 1 else 0 end) as pass,
count() as total
from $table
where
$timeFilter
group by brand
order by pass , total desc
I expected table with 3 columns but it create table with 2 columns, one named time and other have option to select total/pass
Could you please help me to figure out what is wrong?