These queries are for the reports specified in the Making A Report page.
SELECT sum(d.dry_weight), d.ECClassId, cat.codevalue category, count(*)
FROM processphysical.device d
JOIN bis.category cat ON d.Category.Id = cat.ECInstanceId
GROUP BY d.category.id, d.ECClassId
SELECT * FROM ProcessPhysical.DEVICE WHERE DRY_WEIGHT IS NULL OR DRY_WEIGHT = 0
SELECT
ec_classname(f.ECClassId) functionalClass, f.Description functional_description, f.UserLabel functional_Label,
ec_classname(p.ECClassId) physicalClass, p.description physical_description, p.userlabel physical_Label
FROM Functional.PhysicalElementFulfillsFunction pff
JOIN ProcessPhysical.NAMED_ITEM p ON p.ECInstanceId = pff.SourceECInstanceId
JOIN ProcessFunctional.NAMED_ITEM f on f.ECInstanceId = pff.TargetECInstanceId
Physical Element
SELECT * FROM ProcessPhysical.NAMED_ITEM WHERE ECInstanceId NOT IN (SELECT SourceECInstanceId FROM Functional.PhysicalElementFulfillsFunction)
Functional Element
SELECT * FROM ProcessFunctional.NAMED_ITEM WHERE ECInstanceId NOT IN (SELECT TargetECInstanceId FROM Functional.PhysicalElementFulfillsFunction)