--- Mark Steben <msteben@autorevenue.com> wrote:
> select 45198705,false,id,next_avail_senddate(id,date(send_date)) from
> (select
> id,timeclause_combine(date(estmileage_timeclause(service_date,mileage,last_s
> ervice_date,last_mileage,
> date_of_purchase,year_purchased,10750,cid,serindex_date,id)),
> date(date_larger(date(coalesce(date_of_purchase,
> '1900-01-01')+timespan('45 days')),
> date(service_date+timespan('44 days')))),
> date(null),date(create_date),9,false) as send_date,last_send
IIUC, indexs are only used in JOINS and WHERE conditions. I don't see either of those in your
query.
Regards,
Richard Broersma Jr.