Posted: Thu May 31, 2007 9:45 am Post subject: Querying a defined series in the Environment area
Novice
Joined: 03 Aug 2006 Posts: 13 Location: Lansing, MI
The following is a structure that I am trying to query from. If I use CS_RELATED_INDV_ID = '3300096696' I get the proper result, but if I use the param below, I don’t. I believe it is due to the IndvRelation list. Two of the parameters of the query are in the IndvRelation list of the EDGIndv list.
How would I properly query this list within a list structure?
Do I need to declare a reference and perform looping?
Is the a direct query method I am missing?
Thanks.
Test Code:
DECLARE vTest BOOLEAN;
SET vTest = EXISTS(SELECT A.* FROM Environment.Variables.SourceMessageTree.ProgEDG.EDGIndv[] AS A WHERE A.IndvRelation.CS_RELATED_INDV_ID = '3300096711'AND A.IndvRelation.CS_RELATIONSHIP_CD = 'MO' AND A.IN_HOME_IND = 'Y');
IF vTest = TRUE THEN
SET Environment.Variables.MyCheck = 'Y';
ELSE
SET Environment.Variables.MyCheck = 'N';
END IF;
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum