I have a table of values that have a MIN and MAX integer value, i.e.
I would like to select all values that range from Age_MIN >= 105 to Age_MAX <= 110
. There are features in the table that would fall into that range, but I'm not sure how to query them.
When I do a definition query with Age_MIN>= 105 to Age_MAX <= 110 I get this result:
As a visual representation of what I would like to do, please see below image:
enter image description here
Here, the features (horizontal bars) in blue would be selected, and the yellow bars would be unselected as they don't fall within the range of 100 to 110.
Any ideas?
2 Answers 2
To select the age ranges that in some way overlap 100-110 the query should be:
(AgeMin <= 110) AND (AgeMax >=100)
Selection>> Select by attribute
"Age_MIN" >= 60 AND "Age_MAX" <= 110
Update: From your field values in the picture attached in your question and as FelixIP mentioned that there are no values <=65 so in this case you will get no records.
-
I tried that before as it seemed the most logical thing to do - that query returns no valuesFrancis MacDonald– Francis MacDonald2018年05月25日 23:18:13 +00:00Commented May 25, 2018 at 23:18
-
@FrancisMacDonald Can you add a screenshot of a sample from your table to see the data how it looks likeMoh– Moh2018年05月25日 23:23:41 +00:00Commented May 25, 2018 at 23:23
-
@FrancisMacDonald just press edit then press on the image iconMoh– Moh2018年05月25日 23:39:24 +00:00Commented May 25, 2018 at 23:39
-
got it, posted aboveFrancis MacDonald– Francis MacDonald2018年05月25日 23:40:40 +00:00Commented May 25, 2018 at 23:40
-
ok sorry, lets make it Age_MIN >= 105, and Age_MAX <= 110. There are values that fall within the range in the table. How would I select those?Francis MacDonald– Francis MacDonald2018年05月26日 18:26:10 +00:00Commented May 26, 2018 at 18:26
(AgeMin <= 110) and (AgeMax >= 100)