Hello,
I am beginner to MsAccess and I have to solve a problem of query in the geological database.
I have got a stratigraphic columns in the wells with units of different orders which are indexed in the hierarchy field:
WellID depth unit hierarchy
1 0 Kenozoic 100
1 0 Quaternary 110
1 0 Holocene 111
1 110 Pleistocene 112
1 225 Neogene 120
1 300 Jurassic 220
2 0 Triassic 230
2 500 Permian 310
2 800 Devonian 330
2 800 Franian 332
I need to build a query to get a file with records of top of selected order, for instance the first digit of the index:
WellID depth unit hierarchy
1 0 Kenozoic 100
1 300 Mesozoic 200
2 0 Mesozoic 200
2 500 Paleozoic 300
I need to eliminate all units of the same order below the top one, so I believe some dupicate removal will be involved. However, I have little/no idea how to replace unit for instance 332 with 300?
Any hint will be appreciated!!!
Regards
Z