Show the location codes with at least 3 documents.
create table document_locations (location_code varchar, PRIMARY KEY (location_code))
select location_code from document_locations group by location_code having count(*) >= 3