Reader Feedback and Insights: SQL to the Rescue!
October 25, 2002 Timothy Prickett Morgan
Hey, Ted:
I am writing in regard to the September 20, 2002 Midrange Guru article, “Comparing Lists of Numbers to a Value .” I would like to offer the following embedded SQL example as an alternative solution:
D found s 1a D * if (field1 or field2 or field3) > 25 C/exec sql C+ select case C+ when max(:field1, :field2, :field3) > 25 C+ then '1' C+ else '0' C+ end C+ into :found C+ from (any file with one record) C/end-exec C C if found = *on .................. whatever .................. C else ................... whatever .................. C endif
|
This