troywinter
07/05/2021, 3:34 AMselect FLOOR(10000*count(distinct case when action = 'pay' then user_id else '' end) / count(distinct case when action = 'browse' then user_id else '' end))/100 from "capi_trace" where company_id = 'aaaaa' and __time >= '1622554026000' and __time <= '1625146026000' and shop_id in ('xxxxx')
Is it possible without using case when inside distinct count?Kishore G
troywinter
07/05/2021, 3:40 AMKishore G
Kishore G
troywinter
07/05/2021, 4:12 AM