"Marc Sherman" <[EMAIL PROTECTED]> writes:
> I'd like to select the newest (max(timestamp)) row for each id,
> before a given cutoff date; is this possible?
select * from log order by timestamp desc limit 1;
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])
- [SQL] Select most recent record? Marc Sherman
- Re: [SQL] Select most recent record? Tom Lane
- Re: [SQL] Select most recent record? Andrew Perrin
- Re: [SQL] Select most recent record? Tom Lane
- RE: [SQL] Select most recent record? Marc Sherman
- Re: [SQL] Select most recent record? George Moga
- RE: [SQL] Select most recent record? Mark Hamby
- RE: [SQL] Select most recent record? Marc Sherman
