How to leverage JCR SQL2 Query with LIKE Operator
Hi,
We have a situation where we are currently querying to find an Image with the below pattern
abcd_108489356_en.jpg and it is giving the results.
SELECT * FROM [dam:Asset] AS a WHERE ISDESCENDANTNODE(a,[/content/dam/some-company/creative-assets/automobiles/offers]) AND a.[jcr:path] LIKE '%/108489356_en.jpg' ORDER BY a.[jcr:created]
Sometimes images in the DAM would be something like 108489356_enfr.jpg
How can we leverage the above Query to find 108489356_enfr.jpg if 108489356_en.jpg doesn't exist?
Thanks,
@


