1.

For a table having 4 columns, the number of columns to which hash function is applied when using hash indexes is __________(a) 1(b) 2(c) 3(d) 4The question was asked in homework.I want to ask this question from Using Indexing in chapter Query Optimization of MySQL

Answer»

Right answer is (d) 4

To elaborate: In MySQL, for the hash indexes, a hash FUNCTION is applied to each of the column VALUES. The resulting hash values are stored in the index and USED to PERFORM lookups on it.



Discussion

No Comment Found

Related InterviewSolutions