READ Free Dumps For Oracle- 1z0-007
Question ID 7977 | Evaluate this SQL statement: SELECT ename, sal, 12* sal+100 FROM emp; The SAL column stores the monthly salary of the employee. Which change must be made to the above syntax to calculate the annual compensation as "monthly salary plus a monthly bonus of $100, multiplied by 12"? |
Option A | No change is required to achieve the desired results. |
Option B | SELECT ename, sal, 12* (sal+100) FROM emp; |
Option C | SELECT ename, sal, (12* sal)+100 FROM emp; |
Option D | SELECT ename, sal +100,*12 FROM emp; |
Correct Answer | B |
Question ID 7978 | You are the DBA for an academic database. You need to create a role that allows a group of users to modify existing rows in the STUDENT_GRADES table.Which set of statements accomplishes this? |
Option A | CREATE ROLL registrar; GRANT MODIFY ON student_grant TO registrar; GRANT registrar to user 1, user2, user3 |
Option B | CREATE NEW ROLE registrar; GRANT ALL ON student_grant TO registrar; GRANT registrar to user 1, user2, user3 |
Option C | CREATE ROLL registrar; GRANT UPDATE ON student_grant TO registrar; GRANT ROLE to user1, user2, user3 |
Option D | CREATE ROLL registrar; GRANT UPDATE ON student_grant TO registrar; GRANT registrar to user 1, user2, user3; |
Option E | CREATE registrar; GRANT CHANGE ON student_grant TO registrar; GRANT registrar; |
Correct Answer | D |