I have a few doubts about indexs in databases:
Suppose i have a table 'student':
id name age class roll_no 1 vijay 24 12 1007 2 vinay 25 10 1008
if i write
select * from student where name='vijay';
- If i have index on column name then it will search for index name in index table ? Can i check index table data how does it store data ?
- If i don't have index then it will search for only name column or entire row starting from first row's id, then name and so on.... and then second row ?
- Is indexes can be created on non unique column's ?