DanielStead Posted December 2, 2005 Share Posted December 2, 2005 Here is the sql statement SELECT ParcelID, x, y FROM Polygons WHERE Parish = '{Stadhampton}' AND ParcelID = 91 AND x BETWEEN 460000 AND 460500 AND y BETWEEN 199000 AND 199500; Not really too sure bout the between statements as the query worked fine why i didnt use between anyone any ideas as i have never used between before Quote Link to comment https://forums.phpfreaks.com/topic/2970-sql-query-that-doesnt-work-tryign-to-use-between-two-values/ Share on other sites More sharing options...
Honoré Posted December 2, 2005 Share Posted December 2, 2005 [!--quoteo(post=323926:date=Dec 2 2005, 05:52 PM:name=DanielStead)--][div class=\'quotetop\']QUOTE(DanielStead @ Dec 2 2005, 05:52 PM) 323926[/snapback][/div][div class=\'quotemain\'][!--quotec--] SELECT ParcelID, x, y FROM Polygons WHERE Parish = '{Stadhampton}' AND ParcelID = 91 AND x BETWEEN 460000 AND 460500 AND y BETWEEN 199000 AND 199500; try SELECT ParcelID, x, y FROM Polygons WHERE Parish = '{Stadhampton}' AND ParcelID = 91 AND (x BETWEEN 460000 AND 460500) AND (y BETWEEN 199000 AND 199500); Quote Link to comment https://forums.phpfreaks.com/topic/2970-sql-query-that-doesnt-work-tryign-to-use-between-two-values/#findComment-9989 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.