Lessons › Domain 4: Insight (20%) › Lesson 16
CMDB Query Builder and Natural Language Query
About 15 minutes · Last checked against the CIS-DF blueprint (November 2025): 3 December 2026
Step 1 · Learn
Asking questions that span CIs and relationships
A normal list shows one table. Many CMDB questions span several: 'which Linux servers run a database used by a business service owned by Finance?'. The CMDB Query Builder answers those.
Building a query
- Open the CMDB Query Builder from CMDB Workspace.
- Drag the classes you need onto the canvas, such as Business Service, Database and Linux Server.
- Connect them with the relationships you are interested in, or with reference fields to non-CMDB tables such as incidents.
- Set filters and the columns to return for each class.
- Run the query, then save it to reuse it.
Getting the full set of results
- Connect classes with the relationship type that actually exists in your data, or allow any relationship type when you do not know it.
- Allow several relationship levels when CIs are connected through intermediate CIs, such as an application between a service and a server.
- Use a NOT relationship to find CIs that lack a connection, such as servers without any application.
- Choose high enough classes, such as Server rather than Linux Server, when you want all of their children too.
Saved queries in reports
A saved CMDB query can be scheduled and used as a report source, so its results appear on dashboards and reach people automatically. The CMDB 360 query builder works the same way for CMDB 360 data, for example to report on attributes where sources disagree.
Natural Language Query
In CMDB Workspace you can search the CMDB in plain language, such as 'Windows servers in Amsterdam without a support group'. The search turns the sentence into a query you can refine and save. It is the quickest way for people who do not know the class and field names.
Step 2 · Do
Build a CMDB query
Finance asks which Linux servers support its business services. Build the query on the canvas, then fix a query that returns too little. This is a practice environment of our own design, not the ServiceNow product. Complete the tasks in the task list.
Step 3 · Check
Exam-style questions
Select an answer and check it. Every answer includes an explanation.