Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Historian

Minimum retrieval - query 1

  • Last UpdatedFeb 06, 2025
  • 1 minute read

In this example, an analog tag is retrieved over a five minute period, using the minimum retrieval mode. Because the wwResolution parameter is set to 60000, each cycle is exactly one minute long. The minimum data value is returned from each of these cycles.

SELECT DateTime, TagName, CONVERT(DECIMAL(10, 2), Value) AS Value FROM History

WHERE TagName = 'ReactTemp'

AND DateTime >= '2005-04-11 11:21:00'

AND DateTime <= '2005-04-11 11:26:00'

AND wwRetrievalMode = 'Minimum'

AND wwResolution = 60000

The initial value at the query start time is the minimum value found in the phantom cycle before the start time of the query.

The results are:

DateTime

TagName

Value

(phantom cycle)

2005-04-11 11:21:00.000

ReactTemp

104.00

(cycle 1)

2005-04-11 11:21:30.837

ReactTemp

14.00

(cycle 2)

2005-04-11 11:22:00.897

ReactTemp

36.00

(cycle 3)

2005-04-11 11:23:59.567

ReactTemp

18.60

(cycle 4)

2005-04-11 11:24:02.083

ReactTemp

14.00

(cycle 5)

2005-04-11 11:25:59.550

ReactTemp

108.60

TitleResults for “How to create a CRG?”Also Available in