select teamid,
a.playerid,
dbo.FullName(a.playerid) as fullName,
Total_Hits,
Total_At_Bats,
Totals_At_Bats,
Batting_Avg,
Team_Batting_Rank,
All_Batting_Rank
FROM batting
Error message received:
Msg 4104, Level 16, State 1, Line 1 The multi-part identifier "a.playerid" could not be bound.