Getting min and max for specefic user using agregate functions

Aya_Ben_Ali
Tue, 15 Mar 2022 08:31:25 +0000
Dgraph

hello,

I had data in my database which contains principally evt_uniq_visitor and evt_timestamp(the time when data saved) and each time I save data it save evt_uniq_visitor and evt_timestamp so uniq_visitor can have more than one time

I want to query average of max(evt_timestamp) - min(evt_timestamp) for all uniq_visitor in my database

please can anyone help me in this query

5 posts - 2 participants