I have a basic data-based application that manages the records of auto dealers. Each record stores the address of the dealer, which is divided into the components addressLine1 , addressLine2 , city , state and zip , each of which is stored as a string in the data warehouse.
I would like to present a list of cities with representative offices for the user, so I'm trying to find out if it is possible to get a list of each unique city name that was entered into the store. In other words, is it possible to issue some kind of request against all records of dealerships that return a list of different cities?
I would know how to do this easily with an SQL query, but (how) is this done in Core Data?
Many thanks!
source share