Free Oracle 1Z0-071 Exam Braindumps (page: 14)

Examine the commands used to create DEPARTMENT_DETAILS and COURSE_DETAILS tables:


You want to generate a list of all department IDs along with any course IDs that may have been assigned to them. Which SQL statement must you use?

  1. SELECT d.department_id, c.course_id FROM department_details d RIGHT OUTER JOIN course_details c ON (d.department_id=c. department_id);
  2. SELECT d.department_id, c.course_id FROM department_details d LEFT OUTER JOIN course_details c ON (d.department_id=c. department_id);
  3. SELECT d.department_id, c.course_id FROM course_details c LEFT OUTER JOIN department_details d ON (c.department_id=d. department_id);
  4. SELECT d.department_id, c.course_id FROM department_details d RIGHT OUTER JOIN course_details c ON (c.department_id=d. department_id);

Answer(s): B



Which two tasks can be performed by using Oracle SQL statements? (Choose two.)

  1. changing the password for an existing database user
  2. connecting to a database instance
  3. querying data from tables in different databases
  4. starting up a database instance
  5. executing operating system (OS) commands in a session

Answer(s): A,C


Reference:

http://www.techonthenet.com/oracle/password.php https://docs.oracle.com/cd/B28359_01/server.111/b28324/tdpii_distdbs.htm



View the exhibit for the structure of the STUDENT and FACULTY tables.


You need to display the faculty name followed by the number of students handled by the faculty at the base location.
Examine the following two SQL statements:

Statement 1

SQL>SELECT faculty_name, COUNT(student_id)
FROM student JOIN faculty
USING (faculty_id, location_id)
GROUP BY faculty_name;

Statement 2

SQL>SELECT faculty_name, COUNT(student_id)
FROM student NATURAL JOIN faculty
GROUP BY faculty_name;

Which statement is true regarding the outcome?

  1. Only statement 2 executes successfully and gives the required result.
  2. Only statement 1 executes successfully and gives the required result.
  3. Both statements 1 and 2 execute successfully and give different results.
  4. Both statements 1 and 2 execute successfully and give the same required result.

Answer(s): B



Which statement correctly grants a system privilege?

  1. GRANT CREATE VIEW
    ON table1 TO
    user1;
  2. GRANT ALTER TABLE
    TO PUBLIC;
  3. GRANT CREATE TABLE
    TO user1, user2;
  4. GRANT CREATE SESSION
    TO ALL;

Answer(s): C



Viewing page 14 of 95
Viewing questions 53 - 56 out of 380 questions



Post your Comments and Discuss Oracle 1Z0-071 exam prep with other Community members:

1Z0-071 Exam Discussions & Posts