Hello all, I am trying to make a view in SQL but a lot of the data is not consistent and I am getting bad data results when I try to divide 2 fields then one of the fields has text in it and not just numbers. Field1 is only numbers but field2 has numbers and text so I want to make it so if any kind of text comes up it is changed to null so that I don't try dividing a number by some text it is makes things very angry.
I was messing around with:
SQL
CASEWHEN[field2]NOTISNUMERIC(dbo.viewdetails.field2)THENdbo.viewdetails.field2=NULLEND