I'm looking for some assistance/guidance on creating an sql function that will count actions that begin with a certain key. So, within a date range, if a constituent has 10+ of a specific action recorded, they get one score. If they have between 5 and 9, they get another score, etc.
The last line should be the System Record ID without the single quotes, click on the hand icon on the constituent record toolbar to see the system record id.
S
Steve Schindler
said
about 8 years ago
You also might get an ambiguous column name error, if you do add the table name (actions) to the Count(ID) instances, ie; Count(ACTIONS.ID)
J
Jeffrey Wat
said
about 8 years ago
Thank you again. Your join statements got me going in the right direction.
Jeffrey Wat
I'm looking for some assistance/guidance on creating an sql function that will count actions that begin with a certain key. So, within a date range, if a constituent has 10+ of a specific action recorded, they get one score. If they have between 5 and 9, they get another score, etc.
Thank you.