Hi

I have view result that output a pair of name (user ID) and his phone 
number.

PhoneNumber , name
PhoneNumberX, name
PhoneNumberY,name

Now I would like to get all people that their phone is X or Y?
so I wrote:

ComplexKey keys=ComplexKey.of("PhoneNumberX","PhoneNumberY");
query.setKeys(keys); 
ViewResponse result = c.query(view, query);

 
And I get the two values which is fine:
What if same person has two numbers (PhoneNumberX and PhoneNumbery belongs 
to same name) in this case I would like to get just one value.
Can I do distinct query on the name "column"?

Currently, I insert the result into a set and than print the set itself.
Any idea, how to get distinct names?
Tx



-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to