Articles → SQL SERVER → Covering Index In SQL Server
Covering Index In SQL Server
Technical Knowledge
- Basics of SQL server
- Clustered and non-clustered index
- What is the difference between scan and seek?
- Basics about execution plans
Non-Clustered Index And Key Loop Ups
Column Name | Data Type |
---|
Id | int |
Title | varchar (300) |
Deadline | Date |
Assigned To | varchar (100) |
select Title from Task where Title = 'Task 1'
select Title, Deadline from Task where Title = 'Task 1'
Covering Index
CREATE NONCLUSTERED INDEX non_clustered_index_name ON table_name(column_name) include (list_of_included_columns)
CREATE NONCLUSTERED INDEX ix_Title ON Task(Title) include (Deadline)