Skip to main content

Searching the values of particular field with the “Tables” tool,

Comments

4 comments

  • John Nerge

    Is the query you wrote for your search table looking for a complete value (FieldValue = 'this'), or is it looking for the search term as part of a value (FieldValue LIKE '%this%')? If the query is looking for exact values, then it isn't going to return results if you don't complete the search term.

    0
  • Permanently deleted user

    Many thanks John for the help.

    My original syntax that returns values is:

    SELECT Ref_C_MOLG, DocumentType FROM Q.dbo.URBANMASTERPLANS_EVW WHERE DocumentType LIKE %Docu%

    /customer/servlet/servlet.FileDownload?file=00P6000000em1RREAY

    I tried

    DocumentType LIKE ‘%Docu%’, it returnes no values

    /customer/servlet/servlet.FileDownload?file=00P6000000elzoCEAQ

     

    DocumentType LIKE %Docu%, it returnes no values too

    /customer/servlet/servlet.FileDownload?file=00P6000000eluHAEAY

    What is the correct syntax then?

    0
  • John Nerge

    What about '%' + @Docu + '%' ?

    0
  • Permanently deleted user

     

     

    Thank you very much John for the help. It works like a charm

    SELECT Ref_C_MOLG, DocumentType FROM Q.dbo.URBANMASTERPLANS_EVW WHERE DocumentType like '%' + @Docu + '%'

     

    /customer/servlet/servlet.FileDownload?file=00P6000000eluL3EAI

     

     

     

    /customer/servlet/servlet.FileDownload?file=00P6000000eluDwEAI

    0

Please sign in to leave a comment.