YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

get bad-Values and next good Options · View
fesl
#1 Posted : Friday, November 12, 2010 10:08:40 AM
Rank: Newbie
Groups: Member

Joined: 11/12/2010
Posts: 1
Hi folks,

I have to get all Bad-Values and the next Good-Value to each of them (in the last 9 month) for a couple of Tags (about 800-900).

Getting all Bad-Values is no problem but getting the corresponding Good-Values isn´t. My try is to query the next event for each Bad-Value. There is a massive performance problem in my guess. I have about 14.000 Bad-Values for each Tag. This means 14.000 Select-Statements for each Tag.

Is there a single statement where I can query Bad-Events and the next event?

I would be glad for every hint.

fesl
Sponsor  
 

OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System.
We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ  or contact OSIsoft vCampus for more details.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.