ArcGIS Pro Definition Query to select a group of rows with all the same attribute Part 2

406
0
06-19-2023 05:14 AM
Labels (2)
JohnEsch1
New Contributor III

This is a related question to the "ArcGIS Pro Definition Query to select a group of rows with all the same attribute" post. 

 In working with water well data the glacial drift deposits (AQTYPE=D) overly bedrock formations (AQTYPE=R). So for a given well there are typically all  AQTYPE=D above AQTYPE=R. So in the table below and attached, well number 19000000008 is correct where the upper lithologies are all  AQTYPE=D above AQTYPE=R lithologies.  

Well number 19000000009 is not typical and in most cases incorrect in that it has an AQTYPE=R up within the glacial drift deposits. So the sequence is out of order in having  AQTYPE=D deposits below AQTYPE=R deposits. Likely a data entry error where the Granite (AQTYPE=R) in 19000000009 should have been Gravel (AQTYPE=D). 

I am trying to write an ArcGIS Pro Definition Query that will just select a lithology if the sequence was out of order for a given well:  AQTYPE=D deposits below AQTYPE=R in the well 19000000009 above. So it would select this row

190000000092Granite522R

I am also trying to write an ArcGIS Pro Definition Query that will just select a true uppermost rock lithology AQTYPE=R. 

So it the this case the results would be 

190000000085Shale16051R


and 

190000000096Shale1244R

 

Thanks

 

WELLIDSEQ_NUMPRIM_LITHDEPTHTHICKNESSAQTYPE
190000000081Sand & Clay1414D
190000000082Clay3420D
190000000083Sand & Gravel6935D
190000000084Clay & Gravel10940D
190000000085Shale16051R
190000000086Sandstone21555R
190000000091Clay5050D
190000000092Granite522R
190000000093Clay & Stones9038D
190000000094Gravel10010D
190000000095Clay12020D
190000000096Shale1244R
190000000097Shale1306R
190000000098Shale & Sandstone1399R
190000000099Sandstone16021R
1900000000910Sandstone17010R
1900000000911Sandstone22252R

I

0 Replies