Note that there are some explanatory texts on larger screens.

plurals
  1. POthe role of index, clustered index and difference betw primary key with those
    primarykey
    data
    text
    <p>I<code>m student studying DB.. I was studying big physical three join operations(nested loop, sort merge, and hash join). and I don</code>t know how index is used with the above joins..</p> <p>here I have question..</p> <p>what is index exactly...? is it just key? what is the data structure of it? is it the combination of address of real record and.. index attribute name or so?</p> <p>I was to know the details about how index comes to usage as 'Key'.</p> <p>As I know, clustered index is the matched one with real table ordering index.</p> <p>and unclustered index is the one that would order the 'address pointers' of real matched columns of table.</p> <p>and from the above, </p> <p>then I`ve got to think like this..</p> <p>then when we create table and designate one attribute as primary key, what is the effect of it?</p> <p>the primary key becomes the default clustered index?? and physically the row data of the table is sorted by that primary key?</p> <p>or the real order on disk is just the order when the row data were inserted? and primary key is just for relationship between tables not creating any effect like index?</p> <p>then when we create clustered index, then the physical order on disk is reordered?</p> <p>and HERE the thing I really couldn`t understand...</p> <p>how is it said that "with index, it is much faster when we want to find data row that meets the specific predicate, because it is already sorted "</p> <p>( I found that when I was studying about sort-merge join. the source says from each two table, if they have index, they don't need sorting phase and can merge directly..)</p> <p>index makes the table sorted when we create index? I don`t know why it says index is like 'magical tool'..</p> <p>thank you. I know I have written quite distractively, but I`m too confused and those are exactly the thoughts in my head...</p> <ul> <li>and when it comes to sorted merge join,</li> </ul> <p>in case they say 'from index table to real data table, it accesses by rowid', what does the ROWID mean? is it the different thing with Primary key or something????</p> <p>thank you a lot...</p> <p>*in case of Oracle,MySQL?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload