Apologies, I pasted in the wrong URL for the CASE statement docs. Use this one instead: http://dev.mysql.com/doc/mysql/en/control-flow-functions.html (which is linked to from the first one I posted). Didn't read the fine print.
cheers, barneyb On Mon, 31 Jan 2005 13:30:29 -0800, Barney Boisvert <[EMAIL PROTECTED]> wrote: > dateAdd and dateCompare. Or, if you'd rather do it in the DB, the > DATE_ADD function and the CASE construct > (http://dev.mysql.com/doc/mysql/en/case-statement.html). > > Basically what you'll need to do is compute one and two leadtimes > prior to deadline, and then when you have those three dates, figure > out where the current date falls in relation to them. Probably be > simpler to do in CF with some temp variables, rather than in your > SELECT query, but using the DB will probably be a little more > performant. > > cheers, > barneyb > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 6 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192450 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

