Marco,

Try this;

CASE Field01
WHEN '*' THEN '1'
ELSE 'N'
END AS New_Field_Name

or CASE
WHEN Field01 = '*' THEN '1'
WHEN Field01 = ' ' THEN 'N'
ELSE '?'
END AS New_Field_Name

Only one of the WHEN statements will be processed, and the first one that is
true. If no condition matches, then you get the ELSE statement. The
difference is that the 1st example you compare one field to different values
in each when. The 2nd example you can compare different fields with each
when. I don't think the ELSE has to be there, but it is a good idea to code
for other characters.

HTH

Jim
On 9/13/07, Silva Marco <Marco.Silva@xxxxxxxxxxxx> wrote:

Hello,



I need your help once again. J



I have to create a query, but in that in that query I have to create a new
field.



The condition is: in filed RECEIVED If I have this * I want that appears 1
(can be a digit and not a number) if the field is blank or has nothing.



Example:

*=1

'blank'=N



'blank' means that the field has nothing on it.



Is it possible?

Best Regards,

Marco
P
Antes de imprimir este e-mail pense bem se tem mesmo que o fazer. Há cada
vez menos árvores.
Before printing this email, assess if it is really necessary to do so.



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.