I was trying to find out if any index is created on a table, automatically. I used this link to find indexes on Employees table which has 4 columns, namely empid, empName, salary and dept. The query shows that table already has an index - I don't have keys on the table. This link says that non-clustered indexes are not created automatically on a table. So what is the type of index that is already present on Employees table ? Also, index name is shown as null.
Create statement and query used to find indexes on Employees table are as follows :
Create table Employees(
empid int,
empName varchar(100),
salary int,
dept varchar(10)
)
select * from sys.indexes
where object_id = (select object_id
from sys.objects where name = 'Employees')