I have one requirement to write a query to get all the AEM Assets having width greater than a given value.
I tried to write the following SQL2 Query but it did not work.
SELECT asset.* FROM [dam:Asset] AS asset INNER JOIN [nt:unstructured] AS metadataNode ON ISCHILDNODE(metadataNode, asset) WHERE ISDESCENDANTNODE(asset, "/content/dam/wknd-shared") AND metadataNode.[jcr:content/metadata/tiff:ImageWidth] >= CAST("1600" AS LONG)
Please help me to write this query which return the expected response.
@aanchal-sikka @arunpatidar @kautuk_sahni
@EstebanBustamante @Sudheer_Sundalam @Jörg_Hoh
@lukasz-m @Rohan_Garg @Sady_Rifat