I have a list of network logs. There is a time stamp for each row and I need to pull the distinct timestamps such that I can use these for later queries. At the moment I am using the following query:
select distinct time from metastatus
Now I firstly want to confirm that the select distinct
query returns sorted values?
Secondly I have already created an index on time which the database is using for the above query.
Lastly I did think about retrieving all the times and then finding the unique values through my code however there are too many value for me to retrieve all the times (160,000,000).
Thanks, James