READ Free Dumps For Oracle- 1z0-001
Question ID 8087 | The PLAYER table contains these columns id number(9) name varchar(2) manager_id number(9) In this instance, managers are players with you need to display a list of players. Evaluate these TWO SQL statements: SELECT p.name,m.name FROM player p,player m WHERE m.id= m.manager_id; SELECT p.name,m.name FROM player p,player m WHERE m.manager_id=p.id; How would the results differ? |
Option A | Statement1 will not execute, statement2 will |
Option B | Statement1 will execute, statement2 will not. |
Option C | Statement1 is self join, statement2 is not |
Option D | The results will be same but the display will be different. |
Correct Answer | D |
Question ID 8088 | How would you declare a PL/SQL table of records to hold the rows selected from the EMP table? |
Option A | DECLARE emp-table is TABLE of emp%ROWTYPE. |
Option B | BEGIN TYPE emp-table is TABLE of emp%ROWTYPE emp-table emp-table-type; |
Option C | DECLARE TYPE emp-table is TABLE of emp%ROWTYPE INDEX BY WHOLE NUMBER; emp-table emp-table-type; |
Option D | DECLARE TYPE emp-table-type is TABLE of emp%ROWTYPE INDEX BY BINARY INTEGER; emp-table emp-table-type; |
Correct Answer | D |