I have a database with a table named Fielding that contains (among
others) the following records and fields:
playerID = unique with records for each change in POS, year, team
POS = P, C, 1B, 2B, 3B, SS, LF, CF, RF, OF, DH
Games = number of games played at each POS
For example, using this data:
playerID yearID stint teamID POS Games
-----------------------------------------------------
lakeed01 1943 1 BOS SS 63
lakeed01 1944 1 BOS 2B 3
lakeed01 1944 1 BOS 3B 1
lakeed01 1944 1 BOS P 6
lakeed01 1944 1 BOS SS 41
lakeed01 1945 1 BOS 2B 1
lakeed01 1945 1 BOS SS 130
lakeed01 1946 1 DET SS 155
lakeed01 1947 1 DET SS 158
lakeed01 1948 1 DET 2B 45
I need an output like this for each playerID:
playerID =P <>P
---------------------------
lakeed01 6 597
Can this be done straightforward ly? Thanks,
Cliff
others) the following records and fields:
playerID = unique with records for each change in POS, year, team
POS = P, C, 1B, 2B, 3B, SS, LF, CF, RF, OF, DH
Games = number of games played at each POS
For example, using this data:
playerID yearID stint teamID POS Games
-----------------------------------------------------
lakeed01 1943 1 BOS SS 63
lakeed01 1944 1 BOS 2B 3
lakeed01 1944 1 BOS 3B 1
lakeed01 1944 1 BOS P 6
lakeed01 1944 1 BOS SS 41
lakeed01 1945 1 BOS 2B 1
lakeed01 1945 1 BOS SS 130
lakeed01 1946 1 DET SS 155
lakeed01 1947 1 DET SS 158
lakeed01 1948 1 DET 2B 45
I need an output like this for each playerID:
playerID =P <>P
---------------------------
lakeed01 6 597
Can this be done straightforward ly? Thanks,
Cliff
Comment