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

AVEVA™ Historian

Delta retrieval - query 4

  • Last UpdatedFeb 05, 2025
  • 1 minute read

For a delta query, if both a wwCycleCount and a Value comparison are specified, the query will return the first number of rows (if available) that meet the value indicated.

SELECT * FROM OpenQuery(INSQL,'SELECT DateTime, Value, Quality, QualityDetail

FROM AnalogHistory

WHERE TagName = "SysTimeSec"

AND wwRetrievalMode = "Delta"

AND Value = 20

AND wwCycleCount = 10

AND DateTime >="2001-07-27 03:00:00.000"

AND DateTime <="2001-07-27 03:20:00.000"

')

The results are:

DateTime

Value

Quality

QualityDetail

2001-07-27 03:00:20.000

20

0

192

2001-07-27 03:01:20.000

20

0

192

2001-07-27 03:02:20.000

20

0

192

2001-07-27 03:03:20.000

20

0

192

2001-07-27 03:04:20.000

20

0

192

2001-07-27 03:05:20.000

20

0

192

2001-07-27 03:06:20.000

20

0

192

2001-07-27 03:07:20.000

20

0

192

2001-07-27 03:08:20.000

20

0

192

2001-07-27 03:09:20.000

20

0

192

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