update Hazard_HazardSelectedItem set HazardLevel=(select top 1  RiskLevelId from Base_RiskLevel where RiskLevel=1 )
where HazardLevel is null or HazardLevel='1'
go
update Hazard_HazardSelectedItem set HazardLevel=(select top 1  RiskLevelId from Base_RiskLevel where RiskLevel=2 )
where HazardLevel='2'
go
update Hazard_HazardSelectedItem set HazardLevel=(select top 1  RiskLevelId from Base_RiskLevel where RiskLevel=3 )
where HazardLevel='3'
go
update Hazard_HazardSelectedItem set HazardLevel=(select top 1  RiskLevelId from Base_RiskLevel where RiskLevel=4)
where HazardLevel='4'
go