Hello all,
In order to support a business decision, I have need to determine a unique count of drawings, parts, and assemblies. PTC support has offered the following sql query, but the numbers don't agree with advanced search results in the Windchill interface using the following search:
Criteria: | Type=CAD Document;Number=*.prt;Iteration=Latest;Revision=Latest; |
Context=All Contexts
The sql PTC support suggested was:
select count(*) from epmdocument;
This gives total number of Creo Parts, Assemblies, and Drawings.
select count(*), mas.doctype from epmdocument epm, epmdocumentmaster mas where epm.ida3masterreference=mas.ida2a2 group by mas.doctype;
This cagetorizes into Parts, Assemblies, and Drawings.
Anyone have any experience with a similar objective?
Thanks again all.