Re: Selecting the most recent timestamptz

2018-02-22 Thread Alexander Farber
Hi Ken - On Thu, Feb 22, 2018 at 10:24 AM, Ken Tanzer wrote: > On Thu, Feb 22, 2018 at 1:09 AM, Alexander Farber < > alexander.far...@gmail.com> wrote: > >> Good morning, there are these 2 records in a table: >> >> # select m.played, m.mid, m.action, m.gid, m.uid from words_moves m where >> gid=

Re: Selecting the most recent timestamptz

2018-02-22 Thread Ken Tanzer
On Thu, Feb 22, 2018 at 1:09 AM, Alexander Farber < alexander.far...@gmail.com> wrote: > Good morning, there are these 2 records in a table: > > # select m.played, m.mid, m.action, m.gid, m.uid from words_moves m where > gid=10; > played | mid | action | gid | uid > ---

Re: Selecting the most recent timestamptz

2018-02-22 Thread Alexander Farber
Ahh, thank you Laurenz - On Thu, Feb 22, 2018 at 10:18 AM, Laurenz Albe wrote: > > You are only checking if there is a later timestamp *for the same "mid"*. > > Since the two rows have different "mid", they are not compared. > no it works - # select m.played, m.mid, m.action, m.gid, m.uid from

Re: Selecting the most recent timestamptz

2018-02-22 Thread Alexander Farber
s/no it works/now it works/

Re: Selecting the most recent timestamptz

2018-02-22 Thread Laurenz Albe
Alexander Farber wrote: > Good morning, there are these 2 records in a table: > > # select m.played, m.mid, m.action, m.gid, m.uid from words_moves m where > gid=10; > played | mid | action | gid | uid > ---+-++-+- > 2018-02

Selecting the most recent timestamptz

2018-02-22 Thread Alexander Farber
Good morning, there are these 2 records in a table: # select m.played, m.mid, m.action, m.gid, m.uid from words_moves m where gid=10; played | mid | action | gid | uid ---+-++-+- 2018-02-19 14:42:08.46222+01 | 12 | play |