You can reduce the number of apostrophes
chgvar &sqlCmd ('select client_n,' +
*tcat 'max(case when client_act = ''S'' then client_act else null end)
' +
*tcat ' as Settlement_Act,' +
*tcat 'max(case when client_act = ''M'' then client_act else null end)
' +
*tcat ' as Memo_Act,' +
*tcat 'max(case when client_act = ''C'' then client_act else null end)
' +
*tcat ' as Contract_Act' +
*tcat ' from clientact group by client_n order by client_n')
However, some people are null phobic.


Rob Berendt

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2019 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].