Focal Point
[SOLVED] quick question

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1397023016

September 27, 2011, 04:26 PM
phoenixfox
[SOLVED] quick question
Does anyone know the syntax for pulling data that is "like" a particular format? For example, if I want to pull all course codes with a 0 as the second digit. I know in SQL I would use '%0%%'.

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6
Windows, All Outputs
September 27, 2011, 05:31 PM
Dan Satchell
In WebFOCUS the syntax is:

WHERE field LIKE '_0%';



WebFOCUS 7.7.05
September 27, 2011, 05:46 PM
njsden
Even in SQL you should use exactly the same syntax Dan provided.

'%0%%' would actually retrieve all values with a 0 anywhere in your field. The double % at the end of the expression is also redundant.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
September 27, 2011, 08:50 PM
phoenixfox
Thanks Dan. And njsden, you are absolutely correct. Oversight on my part. LOL! Thanks


WebFOCUS 7.6
Windows, All Outputs
September 27, 2011, 09:30 PM
njsden
Wink



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.