Task: Text to Code
Input (English): Step 1: For each row in Customers table, find the corresponding rows in Customer_Contact_Channels table.
Step 2: find customer_name of the results of step 1 with largest value of active_to_date
Output (English): SELECT T1.customer_name FROM Customers AS T1 JOIN Customer_Contact_Channels AS T2 ON T1.customer_id = T2.customer_id ORDER BY T2.active_to_date Desc LIMIT 1