Main Tables Views Materialized Views Indexes Constraints Triggers Procedures Functions Packages Sequences Java Sources Sanity Check Index DDL scrips
Description Columns Query Constraints Triggers

RHNUSERACTIONOVERVIEW

DDL script

Columns

NameTypeNullableInsertableUpdatableDeletableComment
ORG_IDNUMBER(38)NNONONO 
USER_IDNUMBER(38)NNONONO 
IDNUMBER(38)NNONONO 
TYPE_NAMEVARCHAR2(96)NNONONO 
SCHEDULERNUMBER(38)YNONONO 
EARLIEST_ACTIONDATENNONONO 
ACTION_NAMEVARCHAR2(128)YNONONO 
ACTION_STATUS_IDNUMBER(38)NNONONO 
ACTION_STATUSVARCHAR2(16)YNONONO 
TALLYNUMBER(38)YNONONO 
ARCHIVEDNUMBER(38)NNONONO 

Query:

Legend: comment string keyword reserved word operator
select	ao.org_id                                       org_id,
	usp.user_id                                     user_id,
    	ao.action_id                                    id,
	ao.type_name                                    type_name,
        ao.scheduler                                    scheduler,
	ao.earliest_action                              earliest_action,
	decode(ao.name, null, ao.type_name, ao.name)	action_name,
	sa.status					action_status_id,
	astat.name                                      action_status,
	count(sa.action_id)				tally,
	ao.archived                                     archived
from	rhnActionStatus            astat,
    	rhnUserServerPerms         usp,
	rhnServerAction            sa,
	rhnActionOverview	   ao
where	ao.action_id = sa.action_id
  and   sa.server_id = usp.server_id
  and   sa.status = astat.id
group by ao.org_id,
	 usp.user_id,
	 ao.action_id,
	 ao.type_name,
	 ao.scheduler,
	 ao.earliest_action,
	 decode(ao.name, null, ao.type_name, ao.name),
	 sa.status,
	 astat.name,
	 ao.archived
order by earliest_action