Professional Documents
Culture Documents
TCS Internal
1
Objective
TCS Internal
2
Scope
Introduction to Indexes
Implementing Indexes
Creating and dropping Indexes
Creating Indexes with Enterprise Manager
Creating Indexes with the Index Tuning Wizard
Implementation of Views
Dropping Views
Displaying Information
Modifying data through views
TCS Internal
3
Introduction to Indexes
TCS Internal
4
Types of Indexes
TCS Internal
5
Clustered Index
Advantages:
Clustered index are used for Queries that return large result
sets.
TCS Internal
6
Clustered Index Guidelines
TCS Internal
7
Non-Clustered Index
TCS Internal
8
Clustered Vs Non clustered indexes
TCS Internal
9
Non-Clustered Index Guidelines
TCS Internal
10
Implementing indexes
Indexing guidelines :
Foreign Keys
Large result set queries
Order by and group support
TCS Internal
12
Creating and Dropping Indexes
TCS Internal
13
Index Rules
Only the owner of the table can CREATE or DROP the index.
TCS Internal
14
Unique Indexes
EXAMPLE:
OUTPUT:
TCS Internal
15
Clustered Indexes
EXAMPLE
OUTPUT
TCS Internal
16
Non Clustered Indexes
EXAMPLE
OUTPUT
TCS Internal
17
Information about the indexes
sp_helpindex
Syntax:
sp_helpindex table_name
TCS Internal
18
Dropping indexes
Syntax:
TCS Internal
19
Implementation of views
Views :
Advantages of view :
TCS Internal
20
Creation of views
Syntax:
TCS Internal
21
Creation of views
Example
CREATE VIEW twocolumns AS
SELECT appl_no, last_name FROM applicant
TCS Internal
22
Dropping views
Syntax:
TCS Internal
23
Summary
TCS Internal
24