Show the location codes with at least 3 documents.
CREATE TABLE Document_locations (location_code VARCHAR)
[SQL] SELECT location_code FROM Document_locations GROUP BY location_code HAVING COUNT(*) >= 3 [/SQL]