I have a SQL question. I am not very strong with using SQL and thought that someone here could give me a hand. Any help would be appreciated. Thanks in advance.
I have a SQL table that consists of the following:
id INT,
lat VARCHAR(255),
lon VARCHAR(255),
timestamp TIMESTAMP
This table consists of several gps locations from multiple different ID's. The Primary key is the ID and timestamp.
What I need to do is to select the latest 3 sets of coordinates from each unique id. What would be the best way to accomplish this?