Mapping Leads to Customers

End table result: lead_customer

lead_idcustomer_id
lead111cus999
lead222NULL
lead333NULL
lead444cus888

Depending on your business, this process can be difficult. But the end result is simple -

create a two-column table where each customer_id is attached to exactly one lead_id.