|
OK it works. <<SNIP>>
Select FFORMID,
Char(max(case when LOCATE('Fld1',FFIELDNAM)> 0
Then trim(ffieldval) end),30) as fld1 , ...
Richard Schoen on Monday, December 03, 2012 10:43 AM wrote:
How would LOCATE be used in my sample SQL ?
select
FFORMID
,char(max(Case when FFIELDNAM like '%Fld1'
then trim(ffieldval) end),30) as fld1
,char(max(Case when FFIELDNAM like '%Fld2'
then trim(ffieldval) end),30) as fld2
from formfld
where FFORMID = 'cb3c0801-93a8-1940-ad63-0004ac10'
group by fformid
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.