Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
About Us
986
Questions
785
Answers
Interview Preparation mode
beta
Funny Facebook Status
Enter your email address
All categories
SQL Server Interview Questions and Answers
(197)
SSIS Interview Questions and Answers
(54)
SSRS Interview Questions and Answers
(9)
SSAS Interview Questions and Answers
(29)
.NET Interview Questions and Answers
(186)
Oracle Interview Questions and Answers
(122)
Java Interview Questions and Answers
(32)
UNIX Interview Questions and Answers
(47)
Networking Interview Questions and Answers
(17)
MySQL Interview Questions and Answers
(30)
HR Interview Questions and Answers
(237)
General Interview Questions and Answers
(9)
Other Interview Questions and Answers
(8)
Job Openings
(3)
Greenplum Database Interview Questions and Answers
(5)
What are the different indexing options available and what columns do you typically index?
Nice?
Vote!
What are the different indexing options available and what columns do you typically index? What is the value of indexing columns?
asked
1 year
ago
in
SQL Server Interview Questions and Answers
by
R
(
19,530
points)
sql-server-interview-question
junior-sql-server-developer-interview-questions
indexing
1 Answer
Nice?
Vote!
* From a simple standpoint SQL Server offers two types of indexes clustered and non-clustered. In its simplest definition a clustered index is an index that stores the actual data and a non-clustered index is just a pointer to the data. A table can only have one Clustered index and up to 249 Non-Clustered Indexes. If a table does not have a clustered index it is referred to as a Heap.
* To further clarify this let’s take a look at what indexes do and why they are important. The primary reason indexes are built is to provide faster data access to the specific data your query is trying to retrieve. This could be either a clustered or non-clustered index. Without having an index SQL Server would need to read through all of the data in order to find the rows that satisfy the query. If you have ever looked at a query plan the difference would be an Index Seek vs a Table Scan as well as some other operations depending on the data selected.
* Indexes are typically on these columns:
* Primary keys
* Foreign keys
* Columns in WHERE, GROUP BY, ORDER BY, etc.
answered
1 year
ago
by
R
(
19,530
points)
Related questions
Nice?
Vote!
1
answer
Can tables be over indexed? What are the performance implications?
asked
1 year
ago
in
SQL Server Interview Questions and Answers
by
R
(
19,530
points)
sql-server-interview-question
junior-sql-server-developer-interview-questions
indexing
Nice?
Vote!
1
answer
What high availability options are available with SQL Server and what sort of functionality do they provide?
asked
1 year
ago
in
SQL Server Interview Questions and Answers
by
R
(
19,530
points)
sql-server-interview-question
networking-interview-question
backup
restore
Nice?
Vote!
1
answer
What are some options to randomly capture a value from a column in a table?
asked
1 year
ago
in
SQL Server Interview Questions and Answers
by
R
(
19,530
points)
sql-server-interview-question
junior-sql-server-developer-interview-questions
function
Nice?
Vote!
5
answers
What is the difference between DDL and DML commands? Can you name some examples of each?
asked
1 year
ago
in
SQL Server Interview Questions and Answers
by
R
(
19,530
points)
sql-server-interview-question
junior-sql-server-developer-interview-questions
t-sql
Nice?
Vote!
2
answers
What is the importance of primary keys and foreign keys in a SQL Server OLTP database design?
asked
1 year
ago
in
SQL Server Interview Questions and Answers
by
R
(
19,530
points)
sql-server-interview-question
junior-sql-server-developer-interview-questions
data-modeling