Question: Trying to write SQL for the following questions. My headers are: lahmanID playerID managerID hofID birthYear birthMonth birthDay birthCountry birthState birthCity deathYear deathMonth deathDay deathCountry
Trying to write SQL for the following questions.
My headers are:
| lahmanID | playerID | managerID | hofID | birthYear | birthMonth | birthDay | birthCountry | birthState | birthCity | deathYear | deathMonth | deathDay | deathCountry | deathState | deathCity | nameFirst | nameLast | nameNote | nameGiven | nameNick | weight | height | bats | throws | debut | finalGame | college | lahman40ID | lahman45ID | retroID | holtzID | bbrefID |
f.Group the number of players by year of birth and then only list the top 10 years
g.List the number of players by month of birth
h.Provide a list of players with the following information: Player name and city, state, country and total salary for all years combined.
i.Provide a list of players with his age as of today
j.Provide a list of players that were inducted into the Hall of Fame
k.Provide a list of the top 10 highly paid players
l.Provide a list of all players for any team and from any year. For example, print the list of players who played for Chicago Cubs in 2000.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
