SELECT
WA_USER_GROUP.M_ACTOR_C_NAME,
WA_USER_INFO.M_ACTOR_C_NAME,
WA_USER_INFO.M_ACTOR_N_STATUS_L,
WA_OBJ_M_ACTORLINK.M_ACTL_N_ACTTYP_L
FROM
WA_USER_GROUP,
WA_USER_INFO,
WA_OBJ_M_ACTORLINK,
WA_OBJ_M_ACTORLINK FATHERLINK
WHERE
( WA_OBJ_M_ACTORLINK.M_ACTL_N_ACTORID=WA_USER_INFO.M_ACTOR_N_ID )
AND ( FATHERLINK.M_ACTL_N_ID=WA_OBJ_M_ACTORLINK.M_ACTL_N_FATLINKID )
AND ( WA_USER_GROUP.M_ACTOR_N_ID=FATHERLINK.M_ACTL_N_ACTORID )
AND ( FATHERLINK.M_ACTL_N_LAT <> 1 )
AND ( WA_OBJ_M_ACTORLINK.M_ACTL_N_LAT <> 1 )
AND ( (WA_USER_INFO.M_ACTOR_N_TYPE=16
OR WA_USER_INFO.M_ACTOR_N_TYPE=512)
)
AND ( WA_OBJ_M_ACTORLINK.M_ACTL_N_ACTORTYPE IN (2,4,8,12,16,32,64,512) )