Hi,
I’d like t get the most recent record of each unique value.
Let’s say I have a field named “object” and the values are:
-
object: “table”; createdDate: 2019-04-02
-
object: “table”; createdDate: 2019-04-01
-
object: “table”; createdDate: 2018-09-09
-
object: “chair”; createdDate: 2019-02-03
-
object: “chair”; createdDate: 2019-01-03
and I’d like to get the last created record s of each unique value of object (in this example number 1 AND number 4). The object values are not fixed (so I can’t specify them in the query itself). What should be the query?
Thanks,
J.D.