What script would amalgamate rows by ID in the following table and remove NULL values where an ID appears more than once. So for instance ID 3 and ID 217 would become as below. The script has to be old school to be compatible with SQL2000.ID PreOpOrg PreOpTreatment PostOpOrg PostOpTreatment3 RBA11 02 RBA11 06217 NULL NULL RN325 02
and so onID PreOpOrg PreOpTreatment PostOpOrg PostOpTreatment3 RBA11 02 NULL NULL3 NULL NULL RBA11 06217 NULL NULL RN325 02364 NULL NULL RBA11 02369 NULL NULL RN325 02481 GR123 05 NULL NULL834 RBA11 02 NULL NULL834 NULL NULL RBA11 041066 NULL NULL RBA11 052123 NULL NULL RBA11 052246 NULL NULL RBA11 022246 RBA11 02 NULL NULL2512 RBA11 04 NULL NULL2512 NULL NULL RBA11 062694 NULL NULL RN325 052892 NULL NULL RBA11 062892 RBA11 05 NULL NULL3311 RBA11 05 NULL NULL3311 NULL NULL RBA11 063344 RBA11 02 NULL NULL3362 RBA11 02 NULL NULL3770 RBA11 05 NULL NULL