AEM SQL Query
I have a requirement where I run a daily scheduler which picks all changed nodes to a dam location , say /content/test with changes made between today(when the scheduler is running) and the last run(yesterday's date).
Can someone help out on how the SQL query will be?
I have a basic query which checks all nodes with the last modified date
SELECT * FROM [dam:Asset] AS a WHERE ISDESCENDANTNODE(a,[/content/dam/test]) AND a.[jcr:content/jcr:lastModified] > CAST('2022-06-23T21:30:00.000Z' AS DATE)
How to check between two dates and fetch those nodes which was changed between today and yesterday?
Any leads appreciated.
