Hello,
I don't know something like this is possible or not with simpledb. I am trying to use following type of simpledb data structure.
Each item has multiple name/value pairs (name here is attribute-name) e.g.
item1
serial_num -> value
item2
serial_num -> valuesuch number of items are there in a domain and there are multiple such domains.
I want to query something like:
select * from domain where attribute-name = 'serial number'
to get all the items related to one serial number across multiple items and domains; is this possible?
My second question is regarding using combination of fields as item names.
e.g
in above mentioned structure,
Foo_datetime
serial -> value
Foo1_datetime
serial -> value
And I would then query items between certain datetime range and for perticular Foo or Foo1? something like
select * from domain where itemname = 'Foo' and itemname > datetime and itemname < datetime.