concept operation in category sql

appears as: operations, n operation, operation, operations, operation
SQL Server MVP Deep Dives Vol. 2

This is an excerpt from Manning's book SQL Server MVP Deep Dives Vol. 2.

Notice the order of operations and widths of arrows. Using DISTINCT, the de-duplication happens on the dataset including the computed data. It applies the concatenation on every row before looking for duplicates. With GROUP BY, the query optimizer does a little more work, realizing that the computation can be applied on the distinct values. In this scenario, it uses slightly less effort in comparing the values for making them unique, and then only needs to apply the computation 10 times, rather than more than 500 times.

Investigating operations

Some of the most useful queries that you can execute against the plan cache are those where you want to investigate properties of the RelOp element. The RelOp element represents all of the operations that occur when a query is executing. For instance, when a value is calculated, the Scalar operator is used. Or when an index seek is required, the Index Seek operator is used. Both of these, and many others, are represented in the compiled plan through the RelOp elements. From the perspective of the graphical execution plan, there’s a RelOp element in the SHOWPLAN XML for every icon in the graphical plan.