Professional Documents
Culture Documents
// Query to find out if any workflow is attached with a document:select distinct r_workflow_id from dmi_package p,dm_workflow w where
(p.r_workflow_id = w.r_object_id and any r_component_id = '<r_object_id of
document>') and (r_runtime_state = 1 or r_runtime_state= 3)
Groups:
DQL To retrieve group to which user belongs
Select group_name from dm_group where any users_names in (select user_name from
dm_user where user_os_name = username)
Select group_name from dm_group where any users_names in (ashraf) DQL To get all
the groups and count of all the active members in those groups