T
theCityLight
I have an Access Database of about 70,000 asset records.The records
are a combination of parent and sub assets in a field called
AssetTrim. Each asset record is not labeled as parent or subasset but
one can identify the subassets based on the length of the string of
characters. For Example,
Table Name is 01EN. Field Name is AssetTrim.
AssetTrim
A9211
A921101
A921102
A921103
A921104
A921105
A921106
V6317
KK7335
G533501
Z8432
DA863101
DA869602
DA869603
DA869604
XA3452
XA345201
XA345202
BD175634
BD17563401
BD63984109
In the Table above,
A9211 is a parent asset with 6 subassets(A921101, A921102, A921103,
A921104, A921105, A921106). XA3452 and BD175634 are also parent assets
with sub assets.
V6317, KK7335 and Z8432 are parent assets with no subasset.
G533501, DA863101 through DA863104 and BD63984109 are subassets with
no parent assets.
I am trying to design a query that will select from the AssetTrim
field all subassets without a parent. So applying it to the table
above, the query's output will be:
G533501
DA863101
DA869602
DA869603
DA869604
BD63984109
are a combination of parent and sub assets in a field called
AssetTrim. Each asset record is not labeled as parent or subasset but
one can identify the subassets based on the length of the string of
characters. For Example,
Table Name is 01EN. Field Name is AssetTrim.
AssetTrim
A9211
A921101
A921102
A921103
A921104
A921105
A921106
V6317
KK7335
G533501
Z8432
DA863101
DA869602
DA869603
DA869604
XA3452
XA345201
XA345202
BD175634
BD17563401
BD63984109
In the Table above,
A9211 is a parent asset with 6 subassets(A921101, A921102, A921103,
A921104, A921105, A921106). XA3452 and BD175634 are also parent assets
with sub assets.
V6317, KK7335 and Z8432 are parent assets with no subasset.
G533501, DA863101 through DA863104 and BD63984109 are subassets with
no parent assets.
I am trying to design a query that will select from the AssetTrim
field all subassets without a parent. So applying it to the table
above, the query's output will be:
G533501
DA863101
DA869602
DA869603
DA869604
BD63984109