November 6, 2013 at 4:09 pm
In the attached execution plan, at the sort operator(50% cost),when i hover over the operator in the plan i see something like "Expr 1088" ascending, why does it show like that?
November 6, 2013 at 9:10 pm
That is simply the name of the output (one of them) from the Compute Scalar operation right before the sort. Also, you have some carnality issues with this query (not sure if this is a real query or not), but the estimated rows and the actual rows are way off in some instances.
November 7, 2013 at 2:17 am
November 7, 2013 at 7:56 am
Keith Tate (11/6/2013)
That is simply the name of the output (one of them) from the Compute Scalar operation right before the sort. Also, you have some carnality issues with this query (not sure if this is a real query or not), but the estimated rows and the actual rows are way off in some instances.
But then why is it showing a column name for the other one?
November 8, 2013 at 12:28 am
curious_sqldba (11/7/2013)
Keith Tate (11/6/2013)
That is simply the name of the output (one of them) from the Compute Scalar operation right before the sort. Also, you have some carnality issues with this query (not sure if this is a real query or not), but the estimated rows and the actual rows are way off in some instances.But then why is it showing a column name for the other one?
The scalar operator immediately before the sort is calculating the value of [Expr1088]. Included in the output of the scalar operator is the new expression [Expr1088] and the column [Column7]. The sort operator is then sorting on [Expr1088] and [Column7].
In other words, [Expr1088] is a calculated value while [Column7] is a value from your table.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply