Hello @Oetze van den Broek ,
Thanks for the question and using MS Q&A platform.
As we understand the ask here is how to show the record as they arrived , please do let us know if its not accurate. I did some quick test against eventhub and I think the TIMSTAMP BY caluise should help .
SELECT EHInput.DeviceId as deviceid,
EventEnqueuedUtcTime,
LAG(EventEnqueuedUtcTime, 1) OVER (PARTITION BY EHInput.DeviceId LIMIT DURATION(second, 29)) as previous
into adlsgen2
FROM EHInput
TIMESTAMP BY EventEnqueuedUtcTime
Please do let me if you have any queries.
Thanks
Himanshu
- Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators