sql server remove last 4 characters from string code example Example: sql remove last x char REVERSE(SUBSTR( REVERSE(_column), x)) AS , _column_minus_x