Remove Last Character from String in SQL

  1. DECLARE @str VARCHAR(50)='Computer'  
  2. SELECT SUBSTRING(@str, 1, LEN(@str)-1) AS Result