Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Dynatrace Tutorials: Dynatrace Query Language – DQL

Chaining commands with the pipe operator

A DQL query contains at least one or more commands, each of which returns tabular output containing records (lines or rows) and fields (columns). All commands are sequenced by a | (pipe). The data flows or is funneled from one command to the next. The data is filtered or manipulated at each step and then streamed into the following step.

The Dynatrace Query Language (DQL) is a powerful tool to explore your data and discover patterns, identify anomalies and outliers, create statistical modeling, and more based on data stored in Dynatrace Grail storage.

Here is a list of DQL commands:

Here is a list of DQL commands:

  • fetch – Fetches data from a specific data type, such as logs, metrics, or business events.
  • filter – Filters the data based on a specified condition.
  • fields – Selects the fields that you want to include in the output.
  • fieldsAdd – Adds new fields to the output.
  • parse – Parses the data into a different format.
  • summarize – Performs aggregations on the data, such as counting the number of rows, or finding the average value of a column.
  • sort – Sorts the data based on a specified field.
  • limit – Limits the number of rows that are returned in the output.
  • timeseries – Produces a time series of aggregated data.
  • fieldsSummary – Calculates the cardinality of field values that the specified fields have.

Here is a list of DQL Functions:

The following is a list of DQL functions:

  • avg – Calculates the average of the values in a column.
  • count – Counts the number of rows in a table.
  • count_distinct – Counts the number of distinct values in a column.
  • first – Returns the first value in a column.
  • last – Returns the last value in a column.
  • max – Returns the maximum value in a column.
  • min – Returns the minimum value in a column.
  • percentile – Returns the percentile value of the values in a column.
  • sum – Calculates the sum of the values in a column.

DQL operators

Numerical operators

The types long, double and timestamp real represent numerical types. The following operators can be used between pairs of these types

OperatorDescriptionExample
+Addition2+2.5
-Subtraction0.2-0.11
*Multiplication4*5, 60*1s
/Division10/2, 1h/60
%Modulo4%2
<Lower8 < 9, now()-1m < now()
<=Lower than or equal4<=5
>Greater5 > 4
>=Greater than or equal4 >=4
==Equals2 == 2
!=Not equals1 != 2

Logical or equality operators

OperatorDescriptionExample (yields true)
==Equals – Yields true if both operands are not null and equal to each other. Otherwise, false.2==2, "a" == "a"
!=Not equals – Yields null, if one of the operands is null, or if the operands are not equal to each other.2!=1, "b" != "a"
NOTNegation – Negates a logical stateNOT 2==1
ANDLogical and (multiplication) – Yields true if both operands are true.NOT 2==1 AND 1<2
ORLogical or (addition) – Yields true if one of the operands is true, regardless of the other operand.1 < 2 OR 1 > 2
XORExclusive or – Yields true if one of the operands is true, but false in case both are true.1 < 2 XOR 1 > 2

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Team Foundation Server 2015 Installation Guide (SQL Express + Update 3)

Install Team Foundation Server 2015 using the original Microsoft download paths, with clear guidance for online, offline, and ISO-based setup. This revised guide also includes an installation workflow, command example, and practical pitfalls to avoid.

Read More

How to Access a Running Docker Container Shell: docker exec vs docker attach

Need a shell inside a running container that is already in detached mode? This updated guide shows the correct workflow, compares docker exec and docker attach, and explains when SSH does and does not make sense.

Read More

Host Your Own NuGet Feed: Local Source vs NuGet.Server vs NuGetGallery

Learn how to host a private NuGet feed using three practical approaches: a local folder source, NuGet.Server, and NuGetGallery. This revised guide includes setup steps, command examples, and a workflow diagram to help you choose the right model.

Read More

Publish NuGet Packages to NuGet.org: CLI Steps, Workflow, and CI Example

Learn how to publish a NuGet package to NuGet.org using either nuget.exe or the dotnet CLI. This revised guide includes a workflow diagram, command comparison, and a CI-friendly example.

Read More

How to Create NuGet Packages with nuget.exe (Assembly, .nuspec, and .csproj Methods)

Learn three practical ways to build NuGet packages using nuget.exe: from an existing assembly, from a convention-based folder layout, or directly from a Visual Studio project. This guide includes commands, folder conventions, token behavior, and common pitfalls.

Read More

Virtualization in DevOps: Using Vagrant, Docker, and Cloud Platforms Together

This guide explains how VM-based workflows, containers, and cloud platforms complement each other in DevOps. It includes a practical workflow, trade-off table, and command examples for day-to-day use.

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x