I am really confused about the clustered and non clustered indexing and I have spent almost 5 hours today to clarify my doubt but I am still not able to find the answer of my following questions:
1- Clustered indexes are physically stored on table in indexed order.
Question: 1.A. What is the meaning of physically here? 1.B. Is a separate file created on system or the data is stored in table itself in sorted order?
2- Only one cluster index can be created on a table.
Question: 2.A. Does it mean when we create index on two column, it will automatically becomes a non clustered indexing?
3- MyISAM doesn't support clustered indexing but InnoDB support it
Question: 3.A. It means all the indexes created on MyISAM are by default non clustered indexes? 3.B. Is .MYI file contains all the non clustered indexes data in it? 4.B. Again if the index data is stored in a file in MyISAM then where InnoDB store their clustered index data?
Please help as I was asked these question in my interview today and I really not getting any clear answer about it?