Senthil
Senthil

Reputation: 61

How can i query to get the multiple values in SimpleDB (AWS)

In that Picture  i have colored one part. How can i query to get these values like double entry in Simple Db AWS

enter image description herejpg

In that Picture i have colored one part. i have attribute called "deviceModel". It contains more than one value.. i want to take using query from my domain which ItemName() contains deviceModel attribute values more than one value.

Thanks,

Senthil Raja

Upvotes: 0

Views: 862

Answers (2)

user261740
user261740

Reputation: 69

There is no direct approach to get what you are asking.. You need to manipulate by writing your own piece of code. By running SELECT query you will get the item Attribute-value pair. So here you need to traverse each each itemName() and count values of your desire attribute.

Upvotes: 1

Jason Haley
Jason Haley

Reputation: 3800

I think what you are refering to is called MultiValued Attributes. When you put a value in the attribute - if you don't replace the existing attribute value the values will multiply, giving you an array of items connected to the value of that attribute name.

How you create them will depend on the sdk/language you are using for your REST calls, however look for the Replace=true/false when you set the attribute's value.

Here is the documentation page on retrieving them: http://docs.amazonwebservices.com/AmazonSimpleDB/latest/DeveloperGuide/ (look under Using Amazon SimpleDB -> Using Select to Create Amazon SimpleDB Queries -> Queries on Attributes with Multiple Values)

Upvotes: 0

Related Questions