View shrdb.LAWSN.ENPREFERENCECV | Generated by SchemaSpy |
| ||||||||||||||||||||||||||||||||||||||
Analyzed at Thu Dec 13 15:47 CST 2012 |
View Definition:
SELECT 0 AS CTYPE, TREEENTRYID, COUNT(REFERENCEID) AS REFCOUNT FROM ENPREFERENCES
GROUP BY TREEENTRYID
UNION
SELECT 1 AS CTYPE, REFERENCEID, COUNT(TREEENTRYID) AS REFCOUNT FROM ENPREFERENCES
GROUP BY REFERENCEID
ORDER BY CTYPE, REFCOUNT DESC
Possibly Referenced Tables/Views:
|