joaotelles
asked on
Couchbase Query - Display only one result for duplicated entries
Hi,
Im new to CB and I have the following documents that have these fields: (among others)
"_class": "com.wrapper",
"dbProfile": {
"operatorId": "3026",
"profileType": "BEL_PR_LT"
}
I have several combinations of the pair dbProfile.operatorId/dbPro file.profi leType among the documents but all have the _class the same.
I wanted to run a query that would display the all the possible combinations of dbProfile.operatorId/dbPro file.profi leType only once (even if it appears more than once - DISTINCT in SQL).
How would this look like in a CB query format? My bucket name is apoiu.
Tks,
J
Im new to CB and I have the following documents that have these fields: (among others)
"_class": "com.wrapper",
"dbProfile": {
"operatorId": "3026",
"profileType": "BEL_PR_LT"
}
I have several combinations of the pair dbProfile.operatorId/dbPro
I wanted to run a query that would display the all the possible combinations of dbProfile.operatorId/dbPro
How would this look like in a CB query format? My bucket name is apoiu.
Tks,
J
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.