sql - PTC WindChill query reads deleted links too -
i'm trying query windchill database child parts of given part (assembly). have right this:
-- how sql server management studio rewrites oracle join select m1.wtpartnumber component, m2.wtpartnumber assembly, max(wtpartusagelink.amounta7) amount wtpart, wtpartmaster m2, wtpartusagelink, wtpartmaster m1 wtpart.ida3masterreference = m2.ida2a2 , wtpart.ida2a2 = wtpartusagelink.ida3a5 , wtpartusagelink.ida3b5 = m1.ida2a2 group m2.wtpartnumber, m1.wtpartnumber order m2.wtpartnumber, m1.wtpartnumber
it works in sense list of every assembly , parts, can later filter when building tree. fine, there's 1k assemblies total.
the problem lines deleted windchill (they don't show in windchill web app). realize long shot, there table need join or whether or not include potential child part?
i believe should using specific version of part, not part master.
the way boms , assemblies handled within windchill, snapshots of related parts taken each revision of part. if particular part 'version' not referenced, 'all'.
i don't know sql because, i've used info engine tasks achieve same results, avoiding direct contact db. there built-in webject called 'query-tree' that, given object, return related child objects. if wanted full bill of materials on part, run webject , pass part object.
Comments
Post a Comment