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

GetPointsSQL with complex joins Options · View
rtom
#1 Posted : Saturday, April 23, 2011 9:13:02 PM
Rank: Newbie
Groups: Member

Joined: 4/21/2011
Posts: 2
The PISDK talks about the ability of GetPointsSQL to generate complex queries

"GetPointsSQL can implement complex queries, including joins with other PI tables."

However, it is not obvious how to define the query. I did not locate a sample that could help/

For example, In PIOleDB, the following could be expressed

.... FROM piarchive.picomp2 a INNER JOIN pipoint.pipoint2 b ON a.tag = b.tag where a.tag='SINUSOID'

How does one do this using GetPointSQL.

Also, can some clarify the usage of nvExtraTableList. As I understand it, this is like a name value pair list.

Samples would be cool.
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.