Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] How to apply a search filter in a SQL query in OS 11

$
0
0

Good day,


I have created an advanced query for very complicated code. I am getting the following error when trying to filter for my search variable at the end. 


Here is the code for the where clause:

WHERE
    ( e.[control] LIKE '%' + @Search_Compliance_Dashboard + '%'
OR
    e.[risk] LIKE '%' + @Search_Compliance_Dashboard + '%'
OR
    e.[Risk_Description] LIKE '%' + @Search_Compliance_Dashboard + '%'
OR
    e.[process] LIKE '%' + @Search_Compliance_Dashboard + '%'
OR
    e.[DesiredAssuranceLevel] LIKE '%' + @Search_Compliance_Dashboard + '%'

OR
   e.[min_rqd_ass_obtained] LIKE '%' + @Search_Compliance_Dashboard + '%'
OR
   e.[subprocess] LIKE '%' + @Search_Compliance_Dashboard + '%'
)

I am getting the following error:

ORA-01722: invalid number

I assume it is trying to 'add' the % to the search parameter as though they are numbers. How else would I code this??


Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>