Database Interview Questions for Java Developers Part 2
Here are more DB interview question for java developer. Mostly I have been asked question preliminary on DB Index, Query optimisation, Standard query and DB functions. Q 1- How to Enable/Disable Indexes? A - Disable Index ALTER INDEX [IndexName] ON TableName DISABLE GO Enable Index ALTER INDEX [IndexName] ON TableName REBUILD Q 2- What is max number of columns in index? A- 32 Q 3- How many maximum columns in partitions can be used? A - 16 Q 4- How to replace specific values from query result? i.e. how query return 'M' and 'F' can be converted into 'Male' and Female'. A - This can be done using Oracle Decode function the syntax will be like SELECT employee_name, DECODE(type,'M', 'Male', 'F', 'Female')type FROM employee; Q 5 - If the column of the table is having case sensitive data like 'Abc' and 'ABC' and we want to do case sens...