select customer_id
     , if (latest_place_order_date is null, 0,1) as if_placed_order
  from customers_info