ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Process Server (WID/WPS/WAS+)[solved]query() using QUERY_PROPERTY.NAME for multiple prop

Post new topicReply to topic
[solved]query() using QUERY_PROPERTY.NAME for multiple prop View previous topic :: View next topic
Author Message
ProcessCentric
PostPosted: Thu Apr 03, 2008 7:48 am Post subject: [solved]query() using QUERY_PROPERTY.NAME for multiple prop Reply with quote

Apprentice

Joined: 04 Nov 2005
Posts: 25
Location: USA

Anyone every search on multiple properties...

The IBM example shows....

"QUERY_PROPERTY.VARIABLE_NAME = 'customerClaim' AND " + "QUERY_PROPERTY.NAME = 'customerID' AND "
+ "QUERY_PROPERTY.STRING_VALUE like 'Smith%'"

but how do you qurery on two properties...

this doesn't work
(no results found when it should get results)


"(QUERY_PROPERTY.VARIABLE_NAME = 'customerClaim' AND " + "QUERY_PROPERTY.NAME = 'customerID' AND "
+ "QUERY_PROPERTY.STRING_VALUE like 'Smith%)'"

+ AND"(QUERY_PROPERTY.VARIABLE_NAME = 'customerClaim' AND " + "QUERY_PROPERTY.NAME = 'customerLocation' AND "
+ "QUERY_PROPERTY.STRING_VALUE like '01%)'"

thanks again !


Last edited by ProcessCentric on Fri Apr 04, 2008 8:31 am; edited 1 time in total
Back to top
View user's profile Send private message
jmac
PostPosted: Thu Apr 03, 2008 11:25 am Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

This is done the same way as with Custom properties. From my notes:

When using Query Properties in a WHERE clause use the following syntax:

QUERY_PROPERTYn.NAME='StringGDCMember' AND QUERY_PROPERTYn.STRING_VALUE='Joe'

Where
    n is 1 to 9
    Valid “VALUEs” are : DECIMAL_VALUE, GENERIC_VALUE, NUMBER_VALUE, STRING_VALUE and TIMESTAMP_VALUE

_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ProcessCentric
PostPosted: Fri Apr 04, 2008 7:34 am Post subject: Reply with quote

Apprentice

Joined: 04 Nov 2005
Posts: 25
Location: USA

that works!

thanks!
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Process Server (WID/WPS/WAS+)[solved]query() using QUERY_PROPERTY.NAME for multiple prop
Jump to:



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
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.