Jan 27, 2004 #1 Gatorajc MIS Mar 1, 2002 423 US This is an easy one. I know I did it before just cant find it. I have a column with the following data. I-w654534-rer 2-e564654-hkh 1-e546544-dre I want to just get the first character left of the first -. Thanks in advance. AJ If at first you do not succeed, cheat!
This is an easy one. I know I did it before just cant find it. I have a column with the following data. I-w654534-rer 2-e564654-hkh 1-e546544-dre I want to just get the first character left of the first -. Thanks in advance. AJ If at first you do not succeed, cheat!
Jan 27, 2004 Thread starter #2 Gatorajc MIS Mar 1, 2002 423 US Sorry a little to vague. I want to query on the character just left of the first - AJ If at first you do not succeed, cheat! Upvote 0 Downvote
Sorry a little to vague. I want to query on the character just left of the first - AJ If at first you do not succeed, cheat!
Jan 27, 2004 1 #3 bdreed35 Programmer Mar 2, 2003 1,549 US Try this: Code: Left('I-w654534-rer',CHARINDEX('-','I-w654534-rer')-1) ~Brian Upvote 0 Downvote
Jan 27, 2004 Thread starter #4 Gatorajc MIS Mar 1, 2002 423 US I found the answer I was looking for already. substring(TempID,1,1) Thanks anyway. AJ If at first you do not succeed, cheat! Upvote 0 Downvote
I found the answer I was looking for already. substring(TempID,1,1) Thanks anyway. AJ If at first you do not succeed, cheat!
Jan 27, 2004 Thread starter #5 Gatorajc MIS Mar 1, 2002 423 US After further review. I went with your suggestion Brian. Thanks AJ If at first you do not succeed, cheat! Upvote 0 Downvote
After further review. I went with your suggestion Brian. Thanks AJ If at first you do not succeed, cheat!