I have the following data in a field in my SQL table. I want to break up the data in this field so I can use it in reporting:
Player: (265613) Miss Linlde M Simonds, Promo Adjusted -> 10.00, Beg. Bal -> 0.00, End Bal -> 10.00, FreeSlotPlay
Player: (115814) Mr. Seen J Lifield, Promo Adjusted -> 20.00, Beg. Bal -> 5.00, End Bal -> 25.00, FreeSlotPlay
This is all one field - without carage returns. I want to separate this data into the following fields:
Please let me know how to set this up.
I was able to pull the comment - which is the data at the end of these records "FreeSlotPlay" by using this function:
,right((substring(comments,charindex('End Bal ->',comments),40)),(len(substring(comments,charindex('End Bal ->',comments),40))-charindex(', ',(substring(comments,charindex('End Bal ->',comments),40))))) as PBTComment
I am having trouble getting these other fields extracted.
Your help is greatly appreciated.