Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

which index will it take and why ?

$
0
0

Hi, 

I have a table Employee and i have an index on EmpID on this table. Now i have created a view EmpView on this table. I have created an index on this view for the same column EmpID.

Now my question is If i query select * from Empview where empId = something then which index will it consider and why?? 

Thanks in advance

Balaji 


Balaji - BI Developer


Viewing all articles
Browse latest Browse all 4729

Trending Articles



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