williamsba
Programmer
I have a field in my database that contains multiple values seperated by a comma:
ex: value1, value2, value3, value4, value5
This field could contain one value or more. I am trying to break the values apart by the comma, and then tally up the total of entries for that particular item in the database.
ex:
Record 1: value1, value3, value5
Record 2: value1, value2, value3
Record 3: value1, value4, value5
Totals (returned from DB):
value1 = 3
value2 = 1
value3 = 2
value4 = 1
value5 = 2
I need to do this within the query, or a stored procedure. Thanks!
Brad Williams
Webmaster
2d Force Service Support Group
United States Marine Corps
ex: value1, value2, value3, value4, value5
This field could contain one value or more. I am trying to break the values apart by the comma, and then tally up the total of entries for that particular item in the database.
ex:
Record 1: value1, value3, value5
Record 2: value1, value2, value3
Record 3: value1, value4, value5
Totals (returned from DB):
value1 = 3
value2 = 1
value3 = 2
value4 = 1
value5 = 2
I need to do this within the query, or a stored procedure. Thanks!
Brad Williams
Webmaster
2d Force Service Support Group
United States Marine Corps