-
Notifications
You must be signed in to change notification settings - Fork 0
assignment 2 added #2
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
base: master
Are you sure you want to change the base?
Conversation
Assignment2/assignment2.sql
Outdated
| from baseball.batter_counts btc | ||
| left join baseball.game gm | ||
| on btc.game_id = gm.game_id | ||
| group by (btc.team_id)) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bita*
No description provided.