× 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.



Hi Dennis

Both forms are valid on the i and might be on most compliant SQL systems - I don't know that, however. I do prefer the form you used, by the way - but it seems both forms have analogs in various languages.

Vern

Dennis Lovelady wrote:
Portion of SQL statement:
CASE C.ASTOCK WHEN 'N' THEN 'No' WHEN 'Y' THEN 'Yes' END,
CASE C.AFUEL WHEN 'N' THEN 'No' WHEN 'Y' THEN 'Yes' END,

That syntax is foreign to me. I like it (a lot) and it may be valid, but
what I'm used to is: CASE
WHEN C.ASTOCK = 'N' then 'No'
WHEN C.ASTOCK = 'Y' then 'Yes'
ELSE C.ASTOCK end,
What OS are you using?
Only thing I can think of other than syntax is unprintables after the N or
Y, maybe?

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"If I'd known I was going to live so long, I'd have taken better care of
myself."
-- Leon Eldred



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.