I have a sql table with field1 as nvarchar and field2 as int. The values in the field1 have commas, negative numbers, null, blanks etc. The below command handles the replacement of the "," (comma) but when I have a number that does not contain comma, I want to use that number in field2 and also when I have a number (12345), it does not convert to -12345 in field2. I am not an expert at coding in sql....
UPDATE tblpoollist set field2= REPLACE(field1,',','') where field1 like '%,%'
If field 2 is and integer it won't display - on negative numbers. Integers goes from 0 to a range of numbers that now don't remember. If you need to do that you need to change the type of the Field 2 to Money or Float and then you can use your expression