Database: customers_and_addresses
Question: What are the name and active date of the customers whose contact channel code is email?
SQL:
SELECT t1.customer_name ,  t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id  =  t2.customer_id WHERE t2.channel_code  =  'Email'