MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Creating Index

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
rishikesh_u
Beginner


Joined: 26 Jul 2004
Posts: 5
Topics: 3

PostPosted: Wed May 18, 2005 9:12 am    Post subject: Creating Index Reply with quote

Hi,

Can anyone please clarify on what factors should we consider while creating Index.

Suppose say I have a query like

SELECT EMP-NAME
FROM EMP-TABLE
WHERE EMP-NO = 12345

Creating index on EMP-NAME or EMP-NO which one would be more efficient???

Thanks,
Rishi.
Back to top
View user's profile Send private message AIM Address
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed May 18, 2005 11:05 am    Post subject: Reply with quote

rishikesh_u,

Check this link which explains about Determining what columns to index

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNITH10/2.1.2.3?DT=20010219152025

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group