Hi,
this query is returning error in grafana:
SELECT (
( SELECT last(“ProjectRoom_time_unix”) FROM “EMS-Smart-IOT-Device-test” WHERE $timeFilter ORDER BY time DESC LIMIT 1) - ( SELECT last(“ProjectRoom_time_unix”) FROM “EMS-Smart-IOT-Device-test” WHERE $timeFilter ORDER BY time ASC LIMIT 1)
) as “DIFF” WHERE $timeFilter
Error:
Can anyone help me in rectifying this query.
Thanks in advance