Hello all, I am having a little difficulty here. I have to run a daily automated report that pulls data from the previous 24 hour period. The DB records data every minute and I have the below instruction that works great. However, I now have to pull a separate report that only pulls the data for every 30 minutes. Is there a way to adjust this code to only pull the previous days data and only the rows that have the 30 minute data? I hope I am explaining this well enough. Thanks in advance for any assistance.
WHERE CEMS_DATA_MIN.UNIT_ID = 2154 AND ROWNUM <= 1440
ORDER BY CEMS_DATA_MIN.DATE_TIME DESC