Hi,
I am using a report to know who is using which report. The query is
SELECT
decode(instr(OBJ_A_EVENT_DETL.A_EVDET_C_OBJNAME,'.'),0,OBJ_A_EVENT_DETL.A_EVDET_C_OBJNAME,substr(OBJ_A_EVENT_DETL.A_EVDET_C_OBJNAME,1,instr(OBJ_A_EVENT_DETL.A_EVDET_C_OBJNAME,'.')-1)),
OBJ_A_OBJECT_TYPE.A_OTYPE_C_NAME,
OBJ_A_EVENT_LOG.A_EVLOG_C_USER,
OBJ_A_EVENT_NAME.A_EVNAM_C_NAME,
OBJ_A_APPLICATION.A_APPLI_C_NAME,
COUNT(OBJ_A_EVENT_LOG.A_EVLOG_N_TYPEID)
FROM
OBJ_A_EVENT_DETL,
OBJ_A_OBJECT_TYPE,
OBJ_A_EVENT_LOG,
OBJ_A_EVENT_NAME,
OBJ_A_APPLICATION
WHERE
( OBJ_A_EVENT_LOG.A_EVLOG_N_ID=OBJ_A_EVENT_DETL.A_EVDET_N_ID(+) )
AND ( OBJ_A_EVENT_LOG.A_EVLOG_N_TYPEID=OBJ_A_EVENT_NAME.A_EVNAM_N_ID )
AND ( OBJ_A_EVENT_DETL.A_EVDET_N_OBJTYPID=OBJ_A_OBJECT_TYPE.A_OTYPE_N_ID(+) )
AND ( OBJ_A_EVENT_LOG.A_EVLOG_N_APPID=OBJ_A_APPLICATION.A_APPLI_N_ID )
AND (
( OBJ_A_EVENT_LOG.A_EVLOG_N_TYPEID IN ('19','25')
AND OBJ_A_EVENT_DETL.A_EVDET_N_OBJTYPID = '8' )
)
GROUP BY
decode(instr(OBJ_A_EVENT_DETL.A_EVDET_C_OBJNAME,'.'),0,OBJ_A_EVENT_DETL.A_EVDET_C_OBJNAME,substr(OBJ_A_EVENT_DETL.A_EVDET_C_OBJNAME,1,instr(OBJ_A_EVENT_DETL.A_EVDET_C_OBJNAME,'.')-1)),
OBJ_A_OBJECT_TYPE.A_OTYPE_C_NAME,
OBJ_A_EVENT_LOG.A_EVLOG_C_USER,
OBJ_A_EVENT_NAME.A_EVNAM_C_NAME,
OBJ_A_APPLICATION.A_APPLI_C_NAME
It is working fine . I get the data from 2002. If i need data from 2004, What are the modifications to be done above. Please advice.
Thanks in advance
Regards
Suamnth
sumanth (BOB member since 2004-09-24)