Is there any way of searching for data using sql-like 'distinct' on a specific field?
Lets say I have data structured like this:
Product: Red shirt
Size: S
Code: ABC_001
Style: ABC
Product: Red shirt
Size: M
Code: ABC_001
Style: ABC
Product: Blue shirt
Size: S
Color: Blue
Style: ABC
Code: ABC_002
Product: Blue shirt
Size: L
Color: Blue
Style: ABC
Code: ABC_002
I want to retrieve products by "Code", but only get one per "Code" - in other words "SIze" is not relevant.
How can I do that using a Find query?