QuestionQ202

VerifiedManaging Schema Objects

An index was created using this statement:

create index ename_i on employees(last_name,first_name);  

How can the index be changed to include employees’ birthdays, stored in the DATE column named DOB?

Explanation

An Oracle index’s indexed column list is defined when the index is created and cannot be extended with ALTER INDEX. To index DOB alongside last_name and first_name, recreate the index with all three columns. Oracle DATE columns can be indexed.

Community Discussion

No comments yet. Be the first to start the discussion!