Skip to main content
added [query-performance] to 2412 questions - Shog9 (Id=1924)
Link
added 4 characters in body
Source Link
ypercubeᵀᴹ
  • 98.6k
  • 13
  • 215
  • 305

We have a clustered index in table Tbl with order of A,B,C. Does it make senses to write a query to have

...WHERE A = @a, B =@b, C =@c

WHERE A = @a, B = @b, C = @c

or it'll be as same as

... WHERE C = @c, B =@b, A =@a.

WHERE C = @c, B = @b, A = @a

Does the order of query make sense for clustered index?

We have a clustered index in table Tbl with order of A,B,C. Does it make senses to write a query to have

...WHERE A = @a, B =@b, C =@c

or it'll be as same as

... WHERE C = @c, B =@b, A =@a.

Does the order of query make sense for clustered index?

We have a clustered index in table Tbl with order of A,B,C. Does it make senses to write a query to have

WHERE A = @a, B = @b, C = @c

or it'll be as same as

WHERE C = @c, B = @b, A = @a

Does the order of query make sense for clustered index?

Source Link

Does it make sense to order condition in where query?

We have a clustered index in table Tbl with order of A,B,C. Does it make senses to write a query to have

...WHERE A = @a, B =@b, C =@c

or it'll be as same as

... WHERE C = @c, B =@b, A =@a.

Does the order of query make sense for clustered index?