What is Filtered Index in SQL Server ?

What is Filtered Index?

  • Filtered Index is a “SQL Server- 2008” new feature.
  •  Filtered indexes are nonvclustered indexes that have the addition of a WHERE clause.

Syntax:

CREATE NONCLUSTERED INDEX <index name> ON <table> (<columns>) WHERE <criteria>;

Example:

CREATE NONCLUSTERED INDEX  Index_table1 ON  emp (eno) WHERE sal >15000;

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s