Home Forums Programming General Updating a Counter RE: Updating a Counter
K. Brian Kelley
SSC Guru
Points: 114532
More actions
March 30, 2004 at 12:23 pm
#501148
If you know the format is always going to be -, yes, you can do it in a set-based way. You could do something along the lines of:
WHERE MyNumber = SUBSTRING(MyID, 1, CHARINDEX('-', MyID, 1) - 1)
K. Brian Kelley@kbriankelley