sql=SELECT DISTINCT ON (upper(location_03)) location_03, location_03_id FROM public.location WHERE (census_year='1901') and (upper(location_02_id)='3') and (location_03 IS NOT NULL) ORDER BY upper(location_03)
Enumerated Records: 21157
Enumerated Records: 166