sgkdnay
Technical User
- Aug 4, 2008
- 21
I have a grid that goes from 0,0 to 799,799 (800x800 blocks). The issue I'm having, I can't get my head working on this, an guidance or hint of help would be great. I can get the result as long it's inside the stated grid, but when it comes to wrap around the grid, it won't give me results.
ie (this will give me result with no problem):
if i tried (wrap around grid), it will not give me any error or result:
Then I got new help in trying using this code:
with this, it will only display starting from 0,0 and on. I'm trying to include, eg: 795,795 - 0,0. Any idea?
Thanks in advance!
ie (this will give me result with no problem):
Code:
SELECT * FROM map WHERE ((xaxis >= 0 AND xaxis <= 10) AND (yaxis >= 0 AND yaxis <= 10))
if i tried (wrap around grid), it will not give me any error or result:
Code:
SELECT * FROM map WHERE ((xaxis >= 795 AND xaxis <= 10) AND (yaxis >= 795 AND yaxis <= 10))
Then I got new help in trying using this code:
Code:
SELECT * FROM map
WHERE (((MOD(799,xaxis-1) >= 0) AND xaxis <= 10)
AND ((MOD(799,yaxis-1) >= 0) AND yaxis <= 10))
ORDER BY xaxis,yaxis
with this, it will only display starting from 0,0 and on. I'm trying to include, eg: 795,795 - 0,0. Any idea?
Thanks in advance!