RHNUSERAPPLETOVERVIEW
DDL scriptColumns
| Name | Type | Nullable | Insertable | Updatable | Deletable | Comment |
|---|
| USER_ID | NUMBER(38) | N | NO | NO | NO | |
| SECURITY_COUNT | NUMBER(38) | Y | NO | NO | NO | |
| BUG_COUNT | NUMBER(38) | Y | NO | NO | NO | |
| ENHANCEMENT_COUNT | NUMBER(38) | Y | NO | NO | NO | |
Query:
Legend: string keyword reserved word operator
SELECT USP.user_id,
SUM((SELECT COUNT(*) FROM rhnServerErrataTypeView SEV
WHERE SEV.server_id = USP.server_id
AND SEV.errata_type = 'Security Advisory')),
SUM((SELECT COUNT(*) FROM rhnServerErrataTypeView SEV
WHERE SEV.server_id = USP.server_id
AND SEV.errata_type = 'Bug Fix Advisory')),
SUM((SELECT COUNT(*) FROM rhnServerErrataTypeView SEV
WHERE SEV.server_id = USP.server_id
AND SEV.errata_type = 'Product Enhancement Advisory'))
FROM rhnUserServerPerms USP
GROUP BY USP.user_id