Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Summing time instead of counting #29

Open
sfc-gh-ckite opened this issue Jul 25, 2023 · 0 comments
Open

Summing time instead of counting #29

sfc-gh-ckite opened this issue Jul 25, 2023 · 0 comments

Comments

@sfc-gh-ckite
Copy link

SUM(CASE WHEN TOTAL_ELAPSED_TIME < 1000 THEN TOTAL_ELAPSED_TIME ELSE 0 END) AS LT_1,

It seems like the THEN condition in this line should be 1 instead of TOTAL_ELAPSED_TIME. As written, the query is counting all the other buckets, but summing time for the first one.

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

No branches or pull requests

1 participant