07-31-2023, 08:23 AM
To update the record by trimming the last N characters of a particular column:
UPDATE tablename SET columnName = LEFT(columnName , LEN(columnName )-N) where clause
UPDATE tablename SET columnName = LEFT(columnName , LEN(columnName )-N) where clause