Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

count, avg, sum support condition filter #1320

Closed
blacklovebear opened this issue Aug 17, 2021 · 1 comment
Closed

count, avg, sum support condition filter #1320

blacklovebear opened this issue Aug 17, 2021 · 1 comment

Comments

@blacklovebear
Copy link

blacklovebear commented Aug 17, 2021

  • current problem
    count (age>30) no effect. The result just same with count(*)
    355474d627ac0b7664469968caa1209

  • want result
    age, sex
    10, M
    20, F
    30, F
    40, M

count(age>20) return 2, count(sex == 'M') return 2

@czpmango
Copy link
Contributor

RETURN count(case when age>20 then true end)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants