Quantcast
Viewing all articles
Browse latest Browse all 75300

Filter oldest Cache of each State/County by lignumaqua - 2013-08-27

For County the following WHERE filter will do it:

CODE
not(archived) and code in (select code from caches as c1 where not exists (select 1 from caches as c2 where c1.county=c2.county and c2.placeddate < c1.placeddate))


Change the two 'county' fields to 'State' to get the equivalent for States.

(Note: you will get multiple results for a County/State if more than one cache shares the same earliest date)

Viewing all articles
Browse latest Browse all 75300

Trending Articles