-- Licensed Materials - Property of IBM -- -- BI and PM: CM -- -- (C) Copyright IBM Corp. 2008, 2009 -- -- US Government Users Restricted Rights - Use, duplication or disclosure -- restricted by GSA ADP Schedule Contract with IBM Corp. -- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved. -- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated). create view CMOWNERCOUNT(OBJID, OWN_NUMBER) as SELECT p1.OBJID, count(o.CMID) FROM cmobjects o left outer join cmobjprops1 p1 on o.OWNER = p1.CMID GROUP BY p1.OBJID