What is the use of indexes and what are the types of indexes available in SQL Server?
Indexes are used to find data quickly when a query is processed in any relational database. Indexes improve performance by 10 to 500 times.
Index can improve the performance in following operations:
* Find the records matching with WHERE clause
UPDATE Books SET Availability = 1 WHERE SubjectId =12
DELETE FROM Books WHERE Price <10
SELECT * FROM Books WHERE Price BETWEEN 50 AND 80
* Sorting the result with ORDER BY
SELECT * FROM Books ORDER BY Price DESC
* Grouping records and aggregate values
SELECT Count(*) as Units, Price FROM Books GROUP BY Price
There are two types of indexes available in SQL Server: clustered and non-clustered
Clustered index
Clustered index physically reorders the records of a table. Therefore a table can have only one clustered index. Usually a clustered index will be created on the primary key of a table.
Non – Clustered Index
Non – Clustered index are stored in the order of the index key values, but the information in the table is stored in a different order. Means logical sorting of data not Physical. In SQl Server 2005 a table can have 249 non-clustered indexes.
Composite Indexes
A composite index is an index on two or more columns. Both clustered and non-clustered indexes can be composite indexes. If you have composite index on Price and BookName then take can take advantage of it like this:
SELECT BookName, Price FROM Products ORDER BY UnitPrice BookName, Price DESC
Welcome To Latest Dot Net Interview Questions and Answer.
In this Blog you can find all to Dot Net Interview Question and Answer. you can find Scenario based ASP.Net, VB.Net, C# and SQL Server Interview Questions and answers. Dot Net Jobs, Dot Net Books. SQL Server Books, Dot Net Based Company. Dot Net and SQL Server Training Institute.
Visual Studio.Net advanced Interview Questions, SQL Server advanced Interview Questions, Latest Interview Questions,ASP.NET, SQL Server, VB.Net, C#.Net and ADO.NET Interview Questions.Scenario Based Interview Questions. Visual Studio.Net Books and SQL Server Books. Technical Interview Questions, HR Interview Questions
In this Blog You can Find ASP.NET Web Application Projects Idea , C# Windows Application Projects Idea. VB.Net Windows Application Projects Idea, SQL Server Data Base Concept.
Visual Studio.Net advanced Interview Questions, SQL Server advanced Interview Questions, Latest Interview Questions,ASP.NET, SQL Server, VB.Net, C#.Net and ADO.NET Interview Questions.Scenario Based Interview Questions. Visual Studio.Net Books and SQL Server Books. Technical Interview Questions, HR Interview Questions
In this Blog You can Find ASP.NET Web Application Projects Idea , C# Windows Application Projects Idea. VB.Net Windows Application Projects Idea, SQL Server Data Base Concept.
Subscribe to:
Post Comments (Atom)
Resources
Dot Net Inteview Questions
Interview questions
ASP.Net
ASP.Net 2.0
Asp.Net Interview Questions
SQL Server Interview questions
.NEt 4.0 Framework
Basic .Net Framework Questions and answer
C#
Dot Net Projects
Introduction ASP.Net 2.0
Structure
.Net Remoting Interview Question and answer
3 + Years Experience Interview Questions
ACID
ADO.NET
ADO.NET Interview Questions and answer
ASP.NET Security
ASP.Net 3.5
ASP.Net 4.0
Advanced C# questions
Advanced Interview Question in Dot Net
Aggregate Functions in SQL SERVER 2008
Asp.Net Interview Questions and answer
Atomicity
CLR
Class
Common Language Runtime
Connection Pooling in ADO.NET
ConnectionString
Consistency
Delegates
Destructor
Difference Between Classes and Structs
Differnce between ASP.Net Vs ASP
Dot Net Interview Questions Book
Dot Net Project Idea
Durability
Final Year Project Idea.
HTML
Indexes in SQL Server
Interview questions for .NET Framework
Isolation
Mca Final year
Namespace
Object Oriented Programming Concept
Reference types
SQL Server
SQL Server 2008 Advantages
SQL Server Basic Databases
State Management Questions
Strong Name
Style Sheet
The Garbage Collection
The Garbage Collector in .Net
Types of Indexes
UDDI
Value types
WDSL
WEB SERVICES AND REMOTING
Web Control Class in ASP.Net 4.0
Web Service Questions
What is a static class?
XHTML
XML
XSLT
Xml Documents
improve SQL Server Performance
static member of class
My Profile
I have 4 years Experience .Net and SQL Server. I am working as software engineer in private company Bangalore. I have faced many interviews. Here I am Sharing My Interview experience (Technical, HR and Written Test). This Blog is useful for .Net Developers and Freshers. My hobbies I like to play Foot ball, to read some books, to Learn new technologies. I have Experienced in Asp.Net 2.0, C#.Net, VB.Net, SQL Server and Xml.
0 comments
Post a Comment