Skip to content

Conversation

@BitaEt
Copy link
Owner

@BitaEt BitaEt commented Sep 23, 2022

No description provided.

from baseball.batter_counts btc
left join baseball.game gm
on btc.game_id = gm.game_id
group by (btc.team_id))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't group by team.Id group by batter so you can see their average.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a mistake thanks for letting me know, edited.


Question 1

annual

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure to comment out these labels for the code because it won't run if you don't

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi tom, I changed the code a little bit and created the tables at the beginning of the queries, so I commented out this one since I no longer need it, can you check it one more time?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I commented out that table that I initially created, and stored all results in their own tables (baseball. annual_batting_average, baseball.total_batting_average, baseball.rolling_batting_average). this should work now.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also bit make sure to drop your temporary tables

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bita*

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

Successfully merging this pull request may close these issues.

3 participants