Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

BBj SQL engine: Case insensitive search with SQL LIKE

I’m using the following query to search by TITLE in the CDSTORE database, but the search is not case insensitive. How to make the search case insensitive? I thought about using the LOWER verb but I guess it is not defined by the BBj SQL engine.

SELECT TITLE, MUSICTYPE FROM CDINVENTORY WHERE TITLE LIKE '%s%' ORDER BY MUSICTYPE

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I believe BBj doesn’t support the LOWER verb, but instead, you could the integrated CVS Function to the exact same thing. The following should be what you are looking for:

SELECT TITLE, MUSICTYPE FROM CDINVENTORY WHERE cvs(TITLE,8) LIKE '%s%' ORDER BY MUSICTYPE

You’ll find more information about the CVS function
here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading