Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions