Hi everyone,
i have amongst others the columns pid(varchar) and insertDate(timestamp) and would like to obtain all distinct pid values ordered by insertDate. The problem, though, is that with the following query
returns all distinct combinations for pid and insertDate. But i want ONLY the distinct pids ordered by the timestamp.
Any advice is really appreciated.
i have amongst others the columns pid(varchar) and insertDate(timestamp) and would like to obtain all distinct pid values ordered by insertDate. The problem, though, is that with the following query
Code:
select distinct pid, insertDate from mytable order by insertDate
Any advice is really appreciated.