dimanche 22 mars 2015

one-to-many SQLite relationship query

have an sqlite database that holds many cities, each city has a month and each month has 30 days. i created this database using CoreData when i was developing iOS apps on Xcode. now i want to retrieve the days that belongs to a specific month and that month belongs to a specific city.


Database map from Xcode :


enter image description here


Database structure :


enter image description here


Any one knows how accomplish this ? thanks


Aucun commentaire:

Enregistrer un commentaire