|
Using SQL syntax the syntax for the "IF..ELSE" would be... CASE WHEN xpto='EXW' THEN value*0,3 ELSE value*0,4 END as var1 Thank you, Matt Tyler WinCo Foods, Inc mattt@wincofoods.com -----Original Message----- From: jpcarr@tredegar.com [mailto:jpcarr@tredegar.com] Sent: Monday, January 20, 2003 09:10 To: Midrange Systems Technical Discussion Subject: Re: Query400 question >Hi,It is possible to define conditions to use on variables defined in a query >IF xpto='EXW' >var1 = value*0,3 >else >var1 = value*0,4 >var1 is a variable define on the query (definition of a result field) >Pedro Reis Use STRQMQRY using SQL syntax maybe. John --------------------
As an Amazon Associate we earn from qualifying purchases.
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.