J
|
Jane 10/10/2007 |
Hi, select CompanyName, Status, `Cust Status`, `SVC Status`, Date_Reserv_Sched, Date_ServiceDue, If(Date_Reserv_Sched is not null,"Scheduled", If(Date_ServiceDue<Now(),"Overdue","Due")) as Situation from services left join organisations on services.OrgID=organisations.OrgID Where status="Customer" and `Cust Status`="Program" order by If(Date_Reserv_Sched is not null,"Scheduled", If(Date_ServiceDue<Now(),"Overdue","Due")), Date_ServiceDue |
![]() |
Alexey admin 10/10/2007 |
Hi, select ... order by 7,6 |
G
|
giles author 10/10/2007 |
Thanks Jane and Alexey, |