Skip to content
Advertisement

Calculating average number of customers that were contacted before successful conversion

I three tables:

Table Name: Customer

Table Name: Company

Table Name: Contacted (actions/ how the customer was contacted)

I’m trying to write a query that to show the average number of customers that were contacted before they were successfully converted as a customer, on a company level. I’m able to get the number of counts before customers were successfully converted but not sure how to get the avg count and factor in instances where they were eventually converted.

Advertisement

Answer

This is basically a left join with aggregation:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement