--- title: Example queries description: Use the example queries as models for building your custom CMDB queries and Service Mapping queries. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/servicenow-platform/configuration-management-database-cmdb/sample-queries.html release: australia product: Configuration Management Database \(CMDB\) classification: configuration-management-database-cmdb topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Reference, CMDB Query Builder, Configuration Management Database \(CMDB\), Configuration Management, Extend ServiceNow AI Platform capabilities] --- # Example queries Use the example queries as models for building your custom CMDB queries and Service Mapping queries. - **[CMDB — Servers connected to a database](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/configuration-management-database-cmdb/cmdb-query-builder-tutorial.md)** Use this example to build a CMDB query to find all servers with a connection to a database. - **[CMDB — Critical application services](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/configuration-management-database-cmdb/cmdb-query-builder-sample1-app-ser.md)** Use this example to build a CMDB query to find all critical application services, and their owner. - **[CMDB — Application services with incident or change](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/configuration-management-database-cmdb/cmdb-query-builder-sample2-app-ser.md)** Use this example to build a CMDB query to find all application services for which there is an incident or a change request. Results are returned for either the application service itself or any CI within the service. - **[CMDB — Hardware with Windows installed](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/configuration-management-database-cmdb/cmdb-query-builder-sample3-app-ser.md)** Use this example to build a CMDB query to find all hardware in my service offering that has Microsoft Windows installed. - **[Service Mapping — Linux servers in services](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/configuration-management-database-cmdb/service-mapping-query-tutorial.md)** Use this example to build a Service Mapping query to find all Linux servers in services.