QuestionQ3
Prepare dataYou have a KQL database containing a table named Readings.
You need to query Readings and return the results shown in the following table.

How should you complete the query?
Select
Readings | filter City == "Copenhagen" | sort by Datetime | PrevMeterReading = prev(MeterReading), PrevTimestamp = prev(Datetime) | City, Area, MeterReading, Datetime, PrevMeterReading, PrevDatetime
Community Discussion