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

Filtered index

$
0
0

I would like to create filtered index:

WHERE col1<col2

but it is not allowed. If I create computed column(col3=col2-col1) and use filter col3>0 it works, but
as I remember there are some problems with filtered index on computed column.

What would be the best solution?

Thanks,
Simon


Viewing all articles
Browse latest Browse all 23857

Trending Articles