IF EXISTS ( SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'sinistroauto' ) AND COL_LENGTH('[dbo].[sinistroauto]', 'culpado') IS NOT NULL
BEGIN
	UPDATE [dbo].[sinistroauto] 
		SET culpado = 2
		WHERE culpado is null OR culpado = 1;

	UPDATE [dbo].[sinistroauto] 
		SET culpado = 1
		WHERE culpado = 0;

	UPDATE [dbo].[sinistroauto] 
		SET culpado = 0
		WHERE culpado = 2;
END