At a glance, DQL may look like SQL, but it goes deeper. It’s designed to work with Documentum’s object model, where everything – documents, folders, workflows – is an object with rich metadata.
Key capabilities DQL offers that SQL doesn’t:
- Navigate folder hierarchies with FOLDER(ID(‘…’)) & IN DOCUMENT clauses
- Dynamically filter based on the current session using special keywords like USER, NOW, TODAY
- Handle repeating attributes (e.g. multiple authors or keywords) with the ANY predicate
Example:
SELECT object_name FROM dm_document
WHERE ANY keywords = ‘urgent’ and FOLDER (‘/MyCabinet‘, DESCEND)