Database: customers_and_addresses
Question: Compute the average active time span of contact channels.
SQL:
SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels