selecting by attributes
#1
Posted 25 November 2008 - 10:47 AM
I have tried many different ways and still am not comming up with the correct statement. If I relate the tables will that work? If so how do I then select only the data that I need?
Any suggestions would be great.
Cheers
Robyn
"Depth" <= -49 OR "Depth" >= -65 AND "slope" >= .5
#2
Posted 25 November 2008 - 10:59 AM
I have two files that I want only to pull certain data from. I need to find the slope % that is equal to 0.5 degrees and greater in an area that is <=-49 and >=-65. When I use the following equation I end up with everything being selected. I know this is incorrect as I can clearly see that the area covered by the slope points is less than that of the Bathy Depth.
I have tried many different ways and still am not comming up with the correct statement. If I relate the tables will that work? If so how do I then select only the data that I need?
Any suggestions would be great.
Cheers
Robyn
"Depth" <= -49 OR "Depth" >= -65 AND "slope" >= .5
Have you tried this way Depth" <= -49 OR "Depth" >= -65 OR "slope" >= .5 ? Change from AND to OR after 65 ?
Adios from Southern New Mexico
#3
Posted 25 November 2008 - 11:10 AM
"AND" has a precedence over the OR so you should applied you "AND" criteria over each Depth. It should be something like:
("Depth" <= -49 AND "slope" >= .5) OR ("Depth" >= -65 AND "slope" >= .5)
Francois Goulet
---
www.fgcartographix.com :: blog.fgcartographix.com :: http://twitter.com/fgcartographix
#4
Posted 25 November 2008 - 11:33 AM
How do relates work? I know that they are good for this kind of situation where more than one field is needed ,so if I related them how would I then select from the two tables?
Thanks again
Cheers
Robyn
#5
Posted 25 November 2008 - 11:37 AM
Francois Goulet
---
www.fgcartographix.com :: blog.fgcartographix.com :: http://twitter.com/fgcartographix
#6
Posted 25 November 2008 - 12:07 PM
("Depth" <= -49 AND "Depth" >= -65) AND "slope" >= .5
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics
#7
Posted 25 November 2008 - 12:36 PM
I now need to clip the point file with the classification area file and seem to only be generating a point file back.
Thanks for all the help.
Cheers
#8
Posted 25 November 2008 - 03:38 PM
#9
Posted 26 November 2008 - 07:43 AM
Try
'depth' <=-49
AND 'depth >=-65
AND 'slope' = 0.5
#10
Posted 26 November 2008 - 07:47 AM
#11
Posted 27 November 2008 - 02:48 AM
#12
Posted 01 December 2008 - 02:13 AM
Is this ArcGIS? Aren't you supposed to write the fields like [depth] and not quoted? The query builder in ArcGIS is quite ok, and usually works for me if I am not sure.
Brackets are for geodatabases and quotes are for shapefiles if memory serves.
Cheers,
David
#13
Posted 01 December 2008 - 11:53 AM
Things are moving along now and it was because of all your ideas and suggestions.
Cheers
Robyn
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users


Sign In
Create Account

Canada
Back to top
United States

Netherlands
Sweden








