I have a column whose values range from 10-15 characters and whose last 7 characters I would like to get rid of. Can someone please show me how to do this? I thought it would be RTRIM but that didn't work for me. I can't use LEFT or RIGHT before the column because the column length is variable. I would appreciate any help. Thanks much. So here is an example of what I want to accomplish below:
PROBLEM EXAMPLE: 12345678.HELLO
FIXED EXAMPLE: 12345678
Software/Hardware used:
SQL Server 2005 Express
ASKED:
June 28, 2010 6:40 PM
UPDATED:
June 29, 2010 5:55 PM
Beautiful! This worked perfectly. Thank you. I was initially creating a function for this but this is a lot simpler.