Quantcast
Viewing all articles
Browse latest Browse all 461

How count function executes in SQL Server

Hello all,

I have a table, schema for the table has been shown below:

Create Table Employee(

EmployeeID int NOT NULL,EmployeeName varchar(255) NOT NULL,JoinDate datetime Not NULL)

Index Structure:

Clustered Index on EmployeeID

Non-Clustered Index on EmployeName

I am execution a T-SQL query that is :

select count(*) from Employee

During the execution of this query which index will be used any why?

Thanks in advance


Pankaj Kumar Yadav-


Viewing all articles
Browse latest Browse all 461

Trending Articles



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