correct team codes
This commit is contained in:
		
							parent
							
								
									9581cc7dea
								
							
						
					
					
						commit
						81e7471c12
					
				| 
						 | 
					@ -23,4 +23,26 @@ set gamenum = 2
 | 
				
			||||||
where gameid = 'NLS196207300';
 | 
					where gameid = 'NLS196207300';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
alter table allstars drop column "gameid";
 | 
					alter table allstars drop column "gameid";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- correct team codes for whole seasons
 | 
				
			||||||
 | 
					update allstars
 | 
				
			||||||
 | 
					set team = 'ANA'
 | 
				
			||||||
 | 
					where year between 1997 and 2004 and team = 'LAA';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					update allstars
 | 
				
			||||||
 | 
					set team = 'ML4'
 | 
				
			||||||
 | 
					where year between 1970 and 1997 and team = 'MIL';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					update allstars
 | 
				
			||||||
 | 
					set team = 'ML1'
 | 
				
			||||||
 | 
					where year between 1953 and 1965 and team = 'MLN';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- correct team codes for one-off errors
 | 
				
			||||||
 | 
					update allstars
 | 
				
			||||||
 | 
					set team = 'NYA'
 | 
				
			||||||
 | 
					where player = 'chapmbe01' and year = 1933;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					update allstars
 | 
				
			||||||
 | 
					set team = 'ATL'
 | 
				
			||||||
 | 
					where player = 'contrwi02' and year = 2022;
 | 
				
			||||||
end;
 | 
					end;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue