Pete Nellmapius
Posts: 0
Joined: Thu Sep 05, 2013 1:24 pm

Rest Services Select with where having multiple Criteria and Select Distinct using multiple Columns

I have a collection with columns A,B,C all Strings;
Q1) I want to select more than 1 column Distinctly.
Q2) I want want to Select where using more than 1 criteria eg: Column A = "AValue" and B = "BValue"
All the columns are Strings
How do I construct the Distinct and Where Clauses

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Rest Services Select with where having multiple Criteria and Select Distinct using multiple Columns

Hi Pete,

Here is an example: code{"myparam1":{"$gte":"1", "$lt":"2"},"myparam2":{"$gte":"3", "$lt":"4"}}/code
You can read more here: http://docs.appery.io/documentation/b...

Pete Nellmapius
Posts: 0
Joined: Thu Sep 05, 2013 1:24 pm

Rest Services Select with where having multiple Criteria and Select Distinct using multiple Columns

Thanks. The 'where' works great.
I'm having a problem with the distinct parameter.
In SQL it would be "Select a, b, distinct From Table1"

Return to “Issues”