Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Query Requirements Students are required to complete all the questions. Cla ssi fica tio n: Ge ner al 1 . Return all active teamfranchises, sorted
Query Requirements
Students are required to complete all the questions.
Cla
ssi
fica
tio
n:
Ge
ner
al
Return all active teamfranchises, sorted in alphabetical order by name
Return all hall of fame ids, sorted by increasing number of ballots
Find a list of all player ids who have been all stars but do not have a starting position. Do
not include duplicates.
Find a list of all pitching player ids which do not have a BAOpp value.Do not include
duplicates
Return the top salaries before along with their team and player ids
Return the top percent of innOuts from Fielding before along with their team and
player Ids
Return a single column with the first and last name and the city of all players who live in
a city that contains the string "San"
Return a single column with first and last name of all players and the nickname of all
players who have a nickname that contains "Old"
Return all school ids and names that are not in one of the following states: NY LA CA
MN
Return the player ids and states of all players who are from one of the following cities:
Tampa, Minneapolis, Rochester, Chicago
Return the player ids and award names for each award that was a tie between and
Return the player and year id of all pitching rows with an IPOuts value between and
and which have a nonnull BAOPP value
Return the playerIds of all players who died on the same month and day in which they
were born.
Return the team ID and year ID for all teams which had a world series win WSWin
while having an attendance of less than
For all hall of fame winners, return the following columns:
a playerID
b yearID
c closeOrNot
i Someone has won the award if votes meets or exceeds the value of needed
ii closeOrNot should be 'Nail Biter' if the difference between the votes and
the votes needed is less than percent of the total number of ballots cast.
Otherwise, closeOrNot should be 'Landslide' You may use integer
division for this query if you choose
For all players, return the following columns:
a player id
b last name
Cla
ssi
fica
tio
n:
Ge
ner
al
c first name
d sameBirthDeath
i sameBirthDeath should be if the player died in the same country, city,
and state in which they were born, if any of those fields do not match,
and NULL if any of the fields are NULL
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started