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

RHNWEBCONTACTDISABLED

DDL script

Columns

NameTypeNullableInsertableUpdatableDeletableComment
IDNUMBER(38)NNONONO 
ORG_IDNUMBER(38)NNONONO 
LOGINVARCHAR2(64)NNONONO 
LOGIN_UCVARCHAR2(64)NNONONO 
PASSWORDVARCHAR2(110)NNONONO 
ORACLE_CONTACT_IDNUMBER(38)YNONONO 
CREATEDTIMESTAMP(6) WITH LOCAL TIME ZONENNONONO 
MODIFIEDTIMESTAMP(6) WITH LOCAL TIME ZONENNONONO 
IGNORE_FLAGCHAR(1)NNONONO 

Query:

Legend: comment string keyword reserved word operator
select
   wcon.id,
   wcon.org_id,
   wcon.login,
   wcon.login_uc,
   wcon.password,
   wcon.oracle_contact_id,
   wcon.created,
   wcon.modified,
   wcon.ignore_flag
from
   rhnWebContactChangeLog   wccl,
   rhnWebContactChangeState wccs,
   web_contact              wcon
where wccl.change_state_id = wccs.id
   and wccs.label = 'disabled'
   and wccl.web_contact_id = wcon.id
   and wccl.date_completed =
              (select max(wccl_exists.date_completed)
                 from rhnWebContactChangeLog   wccl_exists
                where wccl.web_contact_id = wccl_exists.web_contact_id)