Click here to Skip to main content
15,890,973 members
Home / Discussions / Database
   

Database

 
QuestionSQL Express Pin
Ali Tavakol27-Sep-08 0:46
Ali Tavakol27-Sep-08 0:46 
AnswerRe: SQL Express Pin
Paul Conrad27-Sep-08 5:37
professionalPaul Conrad27-Sep-08 5:37 
Answerhey everyone! It's URGENT! Pin
leckey27-Sep-08 13:39
leckey27-Sep-08 13:39 
GeneralRe: hey everyone! It's URGENT! Pin
Ali Tavakol27-Sep-08 20:43
Ali Tavakol27-Sep-08 20:43 
General:face palm: Pin
leckey28-Sep-08 6:45
leckey28-Sep-08 6:45 
GeneralRe: :face palm: Pin
Paul Conrad29-Sep-08 6:50
professionalPaul Conrad29-Sep-08 6:50 
QuestionIndexing Question Pin
Meysam Mahfouzi26-Sep-08 20:49
Meysam Mahfouzi26-Sep-08 20:49 
AnswerRe: Indexing Question Pin
Wendelius26-Sep-08 22:38
mentorWendelius26-Sep-08 22:38 
This depends very much on the database you are using (SQL Server, Oracle, MySQL etc).

But basically if you create two separate indexes, they can be used independently. When you have one index, the tree traversal must use the first column even though you are not referring to it in a query. Think of it like an index in a book. If you have two levels on chapters like:
- 1.1
- 1.2
- 1.3...
- 2.1
- 2.2
- 2.3...

and you want to find all chapters that are numbered ???.3 you must scan through the whole index to find what you are looking for.

Disclaimer: The description is really simplified and is not accurate for all databases so the situation is actually much more complex. But this should give you the idea.

Hope this helps,

Mika

The need to optimize rises from a bad design

GeneralRe: Indexing Question Pin
Meysam Mahfouzi26-Sep-08 23:25
Meysam Mahfouzi26-Sep-08 23:25 
GeneralRe: Indexing Question Pin
Wendelius26-Sep-08 23:51
mentorWendelius26-Sep-08 23:51 
GeneralRe: Indexing Question Pin
Meysam Mahfouzi27-Sep-08 0:03
Meysam Mahfouzi27-Sep-08 0:03 
GeneralRe: Indexing Question Pin
Meysam Mahfouzi27-Sep-08 2:35
Meysam Mahfouzi27-Sep-08 2:35 
GeneralRe: Indexing Question Pin
Wendelius27-Sep-08 3:06
mentorWendelius27-Sep-08 3:06 
QuestionConvert datetime to just time (only hour) Pin
notes4we26-Sep-08 10:03
notes4we26-Sep-08 10:03 
AnswerRe: Convert datetime to just time (only hour) Pin
PIEBALDconsult26-Sep-08 10:38
mvePIEBALDconsult26-Sep-08 10:38 
AnswerRe: Convert datetime to just time (only hour) Pin
Blue_Boy26-Sep-08 23:47
Blue_Boy26-Sep-08 23:47 
QuestionSQL SP Pin
Care Career26-Sep-08 9:02
Care Career26-Sep-08 9:02 
AnswerRe: SQL SP Pin
Wendelius26-Sep-08 9:30
mentorWendelius26-Sep-08 9:30 
GeneralRe: SQL SP Pin
Care Career28-Sep-08 6:55
Care Career28-Sep-08 6:55 
GeneralRe: SQL SP Pin
Wendelius29-Sep-08 3:41
mentorWendelius29-Sep-08 3:41 
GeneralRe: SQL SP Pin
Care Career28-Sep-08 6:59
Care Career28-Sep-08 6:59 
AnswerRe: SQL SP Pin
nelsonpaixao28-Sep-08 13:33
nelsonpaixao28-Sep-08 13:33 
QuestionUniqueIdentifier Pin
Mohammad Al Hoss26-Sep-08 4:44
Mohammad Al Hoss26-Sep-08 4:44 
AnswerRe: UniqueIdentifier Pin
J4amieC26-Sep-08 4:46
J4amieC26-Sep-08 4:46 
Questionbackup from a specific table Pin
reza assar26-Sep-08 2:59
reza assar26-Sep-08 2:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.