MySQL Forums
Forum List  »  Newbie

Get only the latest entry
Posted by: Chrigu Steck
Date: August 26, 2014 11:20AM

Hi all,

my database structure:

|————————————————————---------------------------------------------———|
| id | timestamp | receiver | message |
|————————————————————---------------------------------------------———|
| 1 | 01.01.2014 | 123 | hallo |
| 2 | 02.03.2014 | 321 | hallo |
| 3 | 03.03.2014 | 123 | hallo1 |
| 4 | 04.03.2014 | 321 | hallo1 |
|————————————————————---------------------------------------------———|

i just want to get the latest entry for every receiver. can this be done directly in the db query?

thx for ur help

Options: ReplyQuote


Subject
Written By
Posted
Get only the latest entry
August 26, 2014 11:20AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.