Illustration | FAQ

Using DQL for Documentum data management: 3 things you need to know

By Vasile Gavrila | 09 June 2025

Illustration | Survey

Managing enterprise content in OpenText Documentum involves more than just storing documents. It requires the ability to retrieve, analyze, and manipulate metadata-rich content efficiently. This is where Documentum Query Language (DQL) becomes essential. DQL is a powerful SQL-like language designed specifically for querying and managing Documentum repositories. 

Whether you’re new to Documentum or refining your administration skills, here are three critical things you need to know about using DQL for effective data management. 

1. DQL is SQL’s smarter sibling – built for content-centric repositories

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) 

Lamp Lamp

Tip: Use ANY when working with multi-valued properties to avoid incomplete query results.

2. Leverage built-in functions to filter & transform metadata

DQL includes a powerful set of functions that allow you to manipulate data on the fly – essential for reporting, audits, and clean-up tasks. Some essentials include: 

  • Date functions: DATEDIFF, DATEADD, DATEFLOOR help you calculate & filter based on time
  • Aggregate functions: COUNT, MAX, SUM etc. help quantify repository data
  • Text functions: UPPER, LOWER, SUBSTR support case-insensitive & partial text matches 

Example:

sql
CopyEdit
SELECT COUNT(*) FROM dm_document
WHERE DATEDIFF(day, r_creation_date, DATE(NOW)) <= 7

Lamp Lamp

This retrieves documents created in the past week great for monitoring recent activity.

3. Use dqMan to write, test & optimize DQL – faster & smarter

Writing DQL manually can be error-prone especially with complex joins, nested queries, or when testing access control behavior. That’s where our all-in-one admin tool dqMan comes in.

Why use dqMan?

  • Intelligent editor: Syntax highlighting, auto-complete & query history
  • Live query execution: Run DQL directly against your OpenText Documentum environment
  • Metadata inspection: Browse objects, types & ACLs without writing extra queries
  • Debugging tools: Spot permission issues, null values & index performance concerns faster 

You don’t need to memorize the DQL syntax – dqMan gives you real-time feedback, structured output, and built-in access to repository metadata.

Final thoughts

DQL is an essential skill for managing content in OpenText Documentum – but the right tool can make all the difference. Instead of wrestling with syntax or manually digging through metadata, let dqMan be your DQL control center.

Smart queries, faster insights, and fewer mistakes – that’s how you manage Documentum data like a pro.

Test dqMan yourself

Sign up for a 14-day free Trial Version and experience how dqMan can simplify your OpenText Documentum management!
Optimize your admin tasks, enhance efficiency, and drive productivity.