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

Sum for sports that use same activites #487

Open
DavidHenryThoreau opened this issue Jan 30, 2024 · 0 comments
Open

Sum for sports that use same activites #487

DavidHenryThoreau opened this issue Jan 30, 2024 · 0 comments

Comments

@DavidHenryThoreau
Copy link

It would be nice to sum same sports stats I mean bike in the workouts there's sport_id (1,2,4)

fittrackee=# select SUM(distance) AS Distance_in_bikes from workouts where sport_id IN (1,2,4);
 distance_in_bikes
-------------------
         10220.612
(1 ligne)

Same for run

fittrackee=# select SUM(distance) AS Distance_in_runs from workouts where sport_id IN (5,8);
 distance_in_runs
------------------
         4372.734
(1 ligne)
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