Hercules! Hercules!
It worked. Of course, now I have to get greedy and try to get the position added. For some reason when I do that (from the fielding menu, which is the only place a see the position field) I end up getting nine entries for each year for each player. Any ideas what I am doing wrong?
Here is the SQL (although I had to cheat and do it using the wizard because I didn’t know how to input the correct parameters):
SELECT [2002 Hitters].playerID, Batting.yearID, Batting.teamID, Batting.lgID, Batting.G, Batting.AB, Batting.R, Batting.H, Batting.[2B], Batting.[3B], Batting.HR, Batting.RBI, Batting.SB, Batting.CS, Batting.BB, Batting.SO, Master.nameLast, Master.nameFirst
FROM (Master INNER JOIN [2002 Hitters] ON Master.playerID = [2002 Hitters].playerID) INNER JOIN Batting ON Master.playerID = Batting.playerID
I named this query “2002 Hitters Cumulative.”
When I try to add the position from the fielding table, I get this:
SELECT [2002 Hitters Cumulative].playerID, [2002 Hitters Cumulative].nameFirst, [2002 Hitters Cumulative].nameLast, [2002 Hitters Cumulative].yearID, [2002 Hitters Cumulative].teamID, [2002 Hitters Cumulative].lgID, Fielding.POS, [2002 Hitters Cumulative].G, [2002 Hitters Cumulative].AB, [2002 Hitters Cumulative].R, [2002 Hitters Cumulative].H, [2002 Hitters Cumulative].[2B], [2002 Hitters Cumulative].[3B], [2002 Hitters Cumulative].HR, [2002 Hitters Cumulative].RBI, [2002 Hitters Cumulative].SB, [2002 Hitters Cumulative].CS, [2002 Hitters Cumulative].BB, [2002 Hitters Cumulative].SO
FROM (Master INNER JOIN [2002 Hitters Cumulative] ON Master.playerID = [2002 Hitters Cumulative].playerID) INNER JOIN Fielding ON Master.playerID = Fielding.playerID;
Thanks Mullinator. You are a genius!