Exam4Training

Your current authorization ID is DBA. Only one of your secondary authorization IDs, DB2, has the privilege to create an index DB2.AAA on a table. The appropriate SQL statement starts with “CREATE INDEX AAA ON…”. Which of the following statements must precede the CREATE statement so that you can create the index?

Your current authorization ID is DBA. Only one of your secondary authorization IDs, DB2, has the privilege to create an index DB2.AAA on a table. The appropriate SQL statement starts with “CREATE INDEX AAA ON…”. Which of the following statements must precede the CREATE statement so that you can create the index?

A. SET CURRENT SQLID = ‘DB2’;

B. SET CURRENT RULES = ‘DB2’;

C. No preceding statement is needed

D. SET CURRENT SCHEMA = ‘DB2’;

Answer: A

Exit mobile version