Help for this page
select `in`.date,leads.* from leads left join `in` on `in`.lead_id = leads.id where `in`.date BETWEEN '{$start_date}' AND '{$end_date}'
[tbone@horse1 CPC]$ ./lead-query.pl 2003-10-01 2003-10-03 ... where `in`.date BETWEEN '' AND '' [tbone@horse1 CPC]$
#!/usr/bin/perl ...