begin; alter table batting drop column "lgID"; update batting set teamid = 'WS9' where teamid = 'WAS' and yearid between 1891 and 1899; update batting set teamid = 'PHP' where teamid = 'PH4' and yearid between 1890 and 1891; commit;