Gossamer Forum
Home : General : Perl Programming :

counting values in multiple fields

Quote Reply
counting values in multiple fields
ok i have a database that has 18 fields for which i want to count values (golf scorecards). each field contains the score one hole while each record is one round of golf for someone. i want to count the number of times each score was made on each hole. sample records:
Code:
5:6:8:3:6:4:8:4:5:6:6:6:6:3:6:6:6:7
5:6:8:3:6:4:8:4:5:6:6:6:6:3:6:6:6:7
5:5:7:3:5:6:6:3:5:6:5:7:6:3:6:6:5:6
6:5:6:4:4:5:7:3:8:7:5:6:8:4:7:6:6:6
so for the above, i would want to know :
hole # 1 had 3 rounds with score of 5 and 1 round with score of 6
hole # 2 had 2 rounds with score of 6 and 2 rounds with score of 5
hole # 3 had 2 round with score of 8 (ugh!), 1 round with score of 7, and 1 round with score of 6
etc

my brain hurts from thinking about this!
Subject Author Views Date
Thread counting values in multiple fields delicia 12416 Mar 27, 2017, 10:44 AM
Thread Re: [delicia] counting values in multiple fields
Andy 12198 Mar 27, 2017, 10:57 PM
Thread Re: [Andy] counting values in multiple fields
delicia 12180 Mar 28, 2017, 7:59 AM
Thread Re: [delicia] counting values in multiple fields
delicia 12178 Mar 28, 2017, 8:20 AM
Post Re: [delicia] counting values in multiple fields
Andy 12156 Mar 28, 2017, 9:24 AM
Thread Re: [delicia] counting values in multiple fields
Andy 12142 Mar 28, 2017, 9:54 AM
Thread Re: [Andy] counting values in multiple fields
delicia 12116 Mar 28, 2017, 5:30 PM
Thread Re: [delicia] counting values in multiple fields
Andy 12096 Mar 28, 2017, 10:56 PM
Post Post deleted by delicia
delicia 12056 Mar 29, 2017, 10:50 AM
Thread Re: [Andy] counting values in multiple fields
delicia 12049 Mar 29, 2017, 10:55 AM
Thread Re: [delicia] counting values in multiple fields
Andy 12020 Mar 29, 2017, 11:20 AM
Thread Re: [Andy] counting values in multiple fields
delicia 11999 Mar 29, 2017, 12:23 PM
Post Re: [delicia] counting values in multiple fields
Andy 11958 Mar 30, 2017, 7:56 AM