I have an T-SQL background so this CoreData stuff is a little new to me.
I am prototyping an app which will eventually use an MS SQL backend webservice for querying.
In my backend my t-sql query would be something like this:
SELECT *, SQRT(SQUARE(myX - latitude) + SQUARE(myY - longitude)) Distance
FROM Locations
WHERE latitude > myX
AND latitude < myX + deltaX
AND longitude > myX
AND latitude < myY + deltaY
ORDER BY SQRT(SQUARE(myX - latitude) + SQUARE(myY - longitude))
How would I do this same query in CoreData in my prototype using a predicate (if thats the best method)
N.B. its more the order by that Im interested in