I need to request a jcr repository to search for nodes where the date property (e.g. jcr: created) is less than a specific date.
Using SQL2, I check "jcr: created> date" (which works fine):
SELECT * FROM [nt:base] AS s WHERE s.[jcr:created] > CAST('2012-01-05T00:00:00.000Z' AS DATE)
Now the tricky part:
There is an additional property that declares a few days to be added to jcr: the created date dynamically.
Let's say the property contains 5 (days), then the request should not check "jcr: created> date", but rather "(jcr: created + 5)> date". The next node containing the value of property 10 should be checked with "(jcr: created + 10)> date".
Is there an intelligent / dynamic operand that can do this? Since the node property is specific, I cannot add it statically to the request, but it must read it for each node.
source share