alamb commented on issue #12023:
URL: https://github.com/apache/datafusion/issues/12023#issuecomment-2292516325

   Another classic trick if you are trying to find the number of rows where `a 
> 0` is to use SUM/CASE
   
   Something like like 
   ```sql
   SELECT 
     SUM(CASE WHEN a > 10 THEN 1 ELSE 0 END)
   FROM 
     table
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to