<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sql queries on clustered and non-clustered indexes - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/sql-queries-on-clustered-and-non-clustered-indexes/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/sql-queries-on-clustered-and-non-clustered-indexes/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Mon, 26 Sep 2022 11:36:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>sql queries on clustered and non-clustered indexes - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/sql-queries-on-clustered-and-non-clustered-indexes/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Types of indexes in SQL</title>
		<link>https://www.wikitechy.com/interview-questions/sql/types-of-indexes-in-sql/</link>
					<comments>https://www.wikitechy.com/interview-questions/sql/types-of-indexes-in-sql/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Mon, 26 Sep 2022 11:36:47 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[3 major types of indexes]]></category>
		<category><![CDATA[explain the types of indexes]]></category>
		<category><![CDATA[indexed in sql server with examples]]></category>
		<category><![CDATA[sql queries on clustered and non-clustered indexes]]></category>
		<category><![CDATA[types of indexes]]></category>
		<category><![CDATA[types of indexes in mysql]]></category>
		<category><![CDATA[types of indexes in sql]]></category>
		<category><![CDATA[types of indexes in sql server]]></category>
		<category><![CDATA[types of indexes in sql with example]]></category>
		<category><![CDATA[types of indexes in sql with examples]]></category>
		<category><![CDATA[types on index in sql]]></category>
		<category><![CDATA[what are indexed and types of indexes in sql]]></category>
		<category><![CDATA[what are the types of indexes in sql server]]></category>
		<category><![CDATA[what is index in sql]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4853</guid>

					<description><![CDATA[There are various types of indexes in SQL server: Clustered Index Non-Clustered Index Column Store Index Filtered Index Hash Index Unique Index Clustered Index Rows of data are sorted and stored data in a table or view depending on the central values by clustered index. Each table can have one clustered index as it enables the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">There are various types of indexes in SQL server:</p>
<ul style="text-align: justify;">
<li>Clustered Index</li>
<li>Non-Clustered Index</li>
<li>Column Store Index</li>
<li>Filtered Index</li>
<li>Hash Index</li>
<li>Unique Index</li>
</ul>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4854 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/09/types-of-index-in-sql.jpg" alt="" width="654" height="427" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/09/types-of-index-in-sql.jpg 654w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/09/types-of-index-in-sql-300x196.jpg 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/09/types-of-index-in-sql-390x255.jpg 390w" sizes="(max-width: 654px) 100vw, 654px" /></p>
<h2 id="clustered-index" style="text-align: justify;"><strong>Clustered Index</strong></h2>
<ul style="text-align: justify;">
<li>Rows of data are sorted and stored data in a table or view depending on the central values by clustered index.</li>
<li>Each table can have one clustered index as it enables the user to store the data in a single order.</li>
<li>Data is sorted and stored in gathered index, so if we see a data in a table sorted means it is arranged with clustered index.</li>
<li>If a table contains clustered index, it is called as clustered table.</li>
<li>When a huge data needs to mdified in a database we use clustered index.</li>
</ul>
<h2 id="non-clustered-index" style="text-align: justify;"><strong>Non Clustered index</strong></h2>
<ul style="text-align: justify;">
<li>Non clustered index are structures that are seperated from the data row.</li>
<li>This type of index contains non clustered key values and those pairs has a pointer to that data row.</li>
<li>In non clustered index, arrow from an index row to data row is called as row locator.</li>
<li>Row locator structure identifies whether the data pages are in the form of clustered table or heap.</li>
<li>Row locator is termed as cluster index key in clustered chart.</li>
<li>User can easily add non key columns to the leaf level in a non clustered index as it byepasses the existing index key limits to perform fully covered indexed queries.</li>
<li>A non clustered index is created to improve the overall performance of frequently asked questions which cannot be created in clustered items.</li>
</ul>
<h3 id="unique-index" style="text-align: justify;"><strong>Unique Index</strong></h3>
<ul style="text-align: justify;">
<li>It enables users to confirm that every row in the table is unique in one way or other by checking if the indexing key contains any duplicate values.</li>
<li>When user wants to use the unique character of data he can use unique index.</li>
<li>Unique index allows indidviduals to ensure that data integrity of each defined column of the table in the database.</li>
<li>It provides additional information about the data table which is helpful for query optimizer.</li>
</ul>
<h3 id="filtered-index" style="text-align: justify;"><strong>Filtered Index</strong></h3>
<ul style="text-align: justify;">
<li>This index is created when column has only a small number of relevent values for queries on the subset of values.</li>
<li>When table contains hetrogeneous data rows, a filtered index is created in sql for one or more data types.</li>
<li>Filtered index is indicate even when query optimizer does not cover any query.</li>
<li>Filtered index indexes the portion of rows in a table, it applies filter on index by improving the overall performance of the query.</li>
<li>Filtered index helps to reduce the maintanence cost and storage cost</li>
<li>Overall impact of data modification is less in filtered index as it is updated only when a new record is inserted or when the data of the index is impacted.</li>
</ul>
<h3 id="column-store-index" style="text-align: justify;"><strong>Column Store Index</strong></h3>
<ul style="text-align: justify;">
<li>Column store index is standard form of index when it comes to storing and querying the large data warehousing tables.</li>
<li>This index was designed for the impovement in the performance of query in case of workloads with vast data.</li>
<li>Data are stored as column based format.</li>
<li>It reduces overall storage cost and provides high level compression of data.</li>
<li>Since data compression happens, user can efficiently perform input and output functions for a high performance result.</li>
</ul>
<h2 id="hash-index" style="text-align: justify;"><strong>Hash Index</strong></h2>
<ul style="text-align: justify;">
<li style="text-align: justify;">Hash index is simply an array in sql that contains pointer slot and a row on each slot.</li>
<li style="text-align: justify;">Hash index use hash function F(K,N) where K is critical and N is number of Buckets.</li>
<li style="text-align: justify;">Function maps out to key corresponding to the bucket of the hash index.</li>
<li style="text-align: justify;">Each hash bucket index contains 8 bytes which is used to store the memory address of the linked list of critical entities.</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/sql/types-of-indexes-in-sql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
