Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Commit

Permalink
Merge pull request #234 from DanKline/master
Browse files Browse the repository at this point in the history
Thanks for the contribution @dankline
  • Loading branch information
Olivier Bloch committed Feb 11, 2016
2 parents 5b55f29 + 53ce1e5 commit d853ae6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Azure/StreamAnalyticsQueries/Aggregates.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* ---------------------------------------------------------------------------------
/* ---------------------------------------------------------------------------------
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
//
// The MIT License (MIT)
Expand Down Expand Up @@ -28,13 +28,13 @@ Select
'All Sensors' AS location,
'All Sensors' AS organization,
'ace60e7c-a6aa-4694-ba86-c3b66952558e' AS guid,
'Temp Average' as displayname,
'Average' as displayname,
Max(timecreated) as timecreated,
Avg(value) AS value
From
DevicesInput TIMESTAMP BY timecreated
where
measurename = 'temperature' OR measurename='Temperature'
measurename = 'temperature' OR measurename='Temperature' OR measurename = 'Humidity' OR measurename='humidity'
Group by
measurename, unitofmeasure,
TumblingWindow(Second, 10)
TumblingWindow(Second, 15)

0 comments on commit d853ae6

Please sign in to comment.