Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Data Warehousing / September 2005

Tip: Looking for answers? Try searching our database.

Index Table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Travis - 16 Sep 2005 11:32 GMT
Hi ,

  I have created 3 fields in for my table , FieldA , B and C all asc order.
  What is the diff if I perform the query like :

A)  Select * From TableA
     Where FieldA = 'A' And FieldB = 'B' And FieldC = 'C'

B)  Select * From TableA
     Where FieldC = 'C' And FieldB = 'B' And FieldC = 'A'

   Do the performance is the same ?

Signature

Travis Tan

Brian Lawton - 16 Sep 2005 11:56 GMT
The optimizer should create the same execution plan for both of these
statements therefore performance should be the same.

Signature

--Brian
(Please reply to the newsgroups only.)

> Hi ,
>
[quoted text clipped - 9 lines]
>
>    Do the performance is the same ?
Travis - 20 Sep 2005 09:15 GMT
Brian ,

  Sorry , What I means is I create an index in TableA with FieldA , B and C
all asc  order.
What is the diff if I perform the query like :
A)  Select * From TableA
     Where FieldA = 'A' And FieldB = 'B' And FieldC = 'C'

B)  Select * From TableA
     Where FieldC = 'C' And FieldB = 'B' And FieldC = 'A'


Travis Tan

> The optimizer should create the same execution plan for both of these
> statements therefore performance should be the same.
[quoted text clipped - 12 lines]
> >
> >    Do the performance is the same ?
Marcin Pêksa - 27 Sep 2005 12:15 GMT
Same answer:
>The optimizer should create the same execution plan for both of these
>statements therefore performance should be the same.

> Brian ,
>
[quoted text clipped - 26 lines]
>> >
>> >    Do the performance is the same ?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.