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

AVEVA™ Historian

Minimum retrieval - query 2

  • Last UpdatedFeb 06, 2025
  • 1 minute read

In this example, the minimum retrieval mode is used in a manner equivalent to using the SQL Server MIN aggregate. Note that the cycle producing the result is the five-minute phantom cycle just before the query start time.

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

WHERE TagName = 'ReactTemp'

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

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

AND wwRetrievalMode = 'Minimum'

AND wwResolution = 300000

The results are:

DateTime

TagName

Value

(phantom cycle)

2005-04-11 11:31:00.000

ReactTemp

14.00

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