× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Theoretically one could do that same processing by picking various obscure
dates. Well, other than that first case...

Striking this
when DateShip < 0 then /* Projected Ship Date */
char(DateOrdr - DateShip days, ISO)
(which a data entry routine could automatically convert to a real date
anyway.)

Leaves you with this:

case
when DateShip = '1492-01-01' then /* No Ship Date needed */
'Customer Pick Up'
when DateShip = '1776-07-04' then /* Backordered */
'Back Ordered '
when DateShip < current date then /* Date missed */
'*** Overdue! ***'
when DateShip IS NULL then /* No Date assigned */
'** Incomplete **'
else
char(DateShip)
end as ShipRule

The obscure date function is no different than certain numbers having a
certain meaning.

Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.