ousoonerjoe
Programmer
I have found several different ways to do this at the table level, but just need to adjust the output of a SELECT statement. I have an address field that is "CHAR(13)+CHAR(10)" delimited. It could have anywhere from 3 to 7 items and I need to break it down to max of 4. I'd rather do this in the statement rather than through the app (makes future changes easier). VB6 has a function called "Split" that makes this easy, however, I do not know of a function in SQL 2000 to accomplish the same result.
Sample data:
Name1 (always exist)
Name2 (may exist)
Attn: Name3 (may exist)
Street1 (always exist)
Street2 (may exist)
City, ST Zip (always exist)
Any assistance or guidance is appreciated. Thank you.
"If I were to wake up with my head sewn to the carpet, I wouldn't be more surprised than I am right now.
Sample data:
Name1 (always exist)
Name2 (may exist)
Attn: Name3 (may exist)
Street1 (always exist)
Street2 (may exist)
City, ST Zip (always exist)
Any assistance or guidance is appreciated. Thank you.
"If I were to wake up with my head sewn to the carpet, I wouldn't be more surprised than I am right now.