Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Indexes for multiple datetime columns

$
0
0

Hi there, I have a table that has in its structure, start_time_stamp (datetime) and end_time_stamp (datetime)

I have created an index with both of these columns as key columns, and a few other fields that we use in our queries in the include columns.

However i've noticed that only one field gets used in the seek predicate, and the other is just used to filter those results.

I would have thought they would both be used in the seek predicate and I cant for the life of me figure out why they arent?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>