2014 Latest Oracle 1Z0-007 Exam Demo Free Download!
Examine the structure of the EMPLOYEES table:
EMPLOYEE_ID NUMBER Primary Key
Which three statements insert a row into the table? (Choose three.)
A. INSERT INTO employees
VALUES ( NULL, ‘John’, ‘Smith’);
B. INSERT INTO employees( first_name, last_name)
VALUES( ‘John’, ‘Smith’);
C. INSERT INTO employees
VALUES ( ‘1000’, ‘John’, NULL);
D. INSERT INTO employees (first_name, last_name, employee_id) VALUES ( 1000, ‘John’, ‘Smith’);
E. INSERT INTO employees (employee_id)
F. INSERT INTO employees (employee_id, first_name, last_name) VALUES ( 1000, ‘John’, ‘ ‘);
Evaluate the SQL statement:
SELECT ROUND(45.953, -1), TRUNC(45.936, 2)
Which values are displayed?
A. 46 and 45
B. 46 and 45.93
C. 50 and 45.93
D. 50 and 45.9
E. 45 and 45.93
F. 45.95 and 45.93
Which are DML statements? (Choose all that apply.)
Evaluate the set of SQL statements:
CREATE TABLE dept
What is true about the set?
A. The DESCRIBE DEPT statement displays the structure of the DEPT table.
B. The ROLLBACK statement frees the storage space occupied by the DEPT table.
C. The DESCRIBE DEPT statement returns an error ORA-04043: object DEPT does not exist.
D. The DESCRIBE DEPT statement displays the structure of the DEPT table only if there is a COMMIT statement introduced before the ROLLBACK statement.
Evaluate this SQL statement:
SELECT ename, sal, 12*sal+100
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”?
A. No change is required to achieve the desired results.
B. SELECT ename, sal, 12*(sal+100)
C. SELECT ename, sal, (12*sal)+100
D. SELECT ename, sal+100,*12
Examine the SQL statement that creates ORDERS table:
CREATE TABLE orders
(SER_NO NUMBER UNIQUE,
ORDER_DATE DATE NOT NULL,
CHECK (status IN (‘CREDIT’, ‘CASH’)),
PRIMARY KEY (order_id, order_date));
For which columns would an index be automatically created when you execute the above SQL statement? (Choose two.)
F. composite index on ORDER_ID and ORDER_DATE
Examine the structure of the EMP_DEPT_VU view:
Column Name Type Remarks
EMPLOYEE_ID NUMBER From the EMPLOYEES table
EMP_NAME VARCHAR2(30) From the EMPLOYEES table
JOB_ID VARCHAR2(20) From the EMPLOYEES table
SALARY NUMBER From the EMPLOYEES table
DEPARTMENT_ID NUMBER From the DEPARTMENTS table
DEPT_NAME VARCHAR2(30) From the DEPARTMENTS table
Which SQL statement produces an error?
A. SELECT *
B. SELECT department_id, SUM(salary)
GROUP BY department_id;
C. SELECT department_id, job_id, AVG(salary)
GROUP BY department_id, job_id;
D. SELECT job_id, SUM(salary)
WHERE department_id IN (10,20)
GROUP BY job_id
HAVING SUM(salary) > 20000;
E. None of the statements produce an error; all are valid.
Evaluate this SQL statement:
SELECT e.EMPLOYEE_ID,e.LAST_NAME,e.DEPARTMENT_ID, d.DEPARTMENT_NAME
FROM EMPLOYEES e, DEPARTMENTS d
WHERE e.DEPARTMENT_ID = d.DEPARTMENT_ID;
In the statement, which capabilities of a SELECT statement are performed?
A. selection, projection, join
B. difference, projection, join
C. selection, intersection, join
D. intersection, projection, join
E. difference, projection, product
Click the Exhibit button and examine the data from the EMP table. The COMMISSION column shows the monthly commission earned by the employee. Which three tasks would require subqueries or joins in order to be performed in a single step? (Choose three.)
A. deleting the records of employees who do not earn commission
B. increasing the commission of employee 3 by the average commission earned in department 20
C. finding the number of employees who do NOT earn commission and are working for department 20
D. inserting into the table a new employee 10 who works for department 20 and earns a commission that is equal to the commission earned by employee 3
E. creating a table called COMMISSION that has the same structure and data as the columns EMP_ID and COMMISSION of the EMP table
F. decreasing the commission by 150 for the employees who are working in department 30 and earning a commission of more than 800
You need to modify the STUDENTS table to add a primary key on the STUDENT_ID column. The table is currently empty. Which statement accomplishes this task?
A. ALTER TABLE students
ADD PRIMARY KEY student_id;
B. ALTER TABLE students
ADD CONSTRAINT PRIMARY KEY (student_id);
C. ALTER TABLE students
ADD CONSTRAINT stud_id_pk PRIMARY KEY student_id;
D. ALTER TABLE students
ADD CONSTRAINT stud_id_pk PRIMARY KEY (student_id); E.ALTER TABLE students
MODIFY CONSTRAINT stud_id_pk PRIMARY KEY (student_id);
Passing your Oracle 1Z0-007 Exam by using the latest Oracle 1Z0-007 Exam Demo Full Version: http://www.braindump2go.com/1z0-007.html