【OCP题库-12c】最新CUUG OCP 071考试题库(72题)

72、View the exhibit for the structure of the STUDENTand FACULTYtables.

STUDENT

Name Null? Type



STUDENT_ID NOT NULL NUMBER(2)

STUDENT_NAME VARCHAR2(20)

FACULTY_ID VARCHAR2(2)

LOCATION_ID NUMBER(2)

FACULTY

Name Null? Type



FACULTY_ID NOT NULL NUMBER(2)

FACULTY_NAME VARCHAR2(20)

LOCATION_ID NUMBER(2)

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?

A. Only statement 2 executes successfully and gives the required result.

B. Only statement 1 executes successfully and gives the required result.

C. Both statements 1 and 2 execute successfully and give different results.

D. Both statements 1 and 2 execute successfully and give the same required result.

Correct Answer: A

原文地址:https://blog.51cto.com/13854012/2360062

时间: 2024-08-27 00:46:20

【OCP题库-12c】最新CUUG OCP 071考试题库(72题)的相关文章

【OCP题库】最新CUUG OCP 12c 071考试题库(65题)

65.(22-16) choose the best answer: The CUSTOMERS table has the following structure: You need to write a query that does the following tasks: Display the first name and tax amount of the customers. Tax is 5% of their credit limit. Only those customers

【OCP题库】最新CUUG OCP 12c 071考试题库(67题)

67.(25-8)choose the best answer: View the Exhibit and examine the structure of CUSTOMERS table. Evaluate the following query: SQL>SELECT cust_id, cust_city FROM customers WHERE cust_firstname NOT LIKE 'A%g_%' AND cust_credit_limit BETWEEN 5000 AND 15

【OCP题库】最新CUUG OCP 12c 071考试题库(68题)

68.(29-13)choose two: Which two statements are true? (Choose two.) A) DICTIONARY is a view that contains the names of all the data dictionary views that the user can access. B) The user SYSTEM owns all the base tables and user-accessible views of the

【OCP题库-12c】最新CUUG OCP 071考试题库(69题)

69.(31-1)choose the best answer: Evaluate the following query: SELECT INTERVAL '300' MONTH, INTERVAL '54-2' YEAR TO MONTH, INTERVAL '11:12:10.1234567' HOUR TO SECOND FROM dual; What is the correct output of the above query? A) +25-00 , +00-650, +00 1

【OCP题库-12c】最新CUUG OCP 071考试题库(70题)

70.(31-2)choose the best answer: View the Exhibit and examine the structure of the Book table. The BOOKS table contains details of 100 books. Examine the commands executed and their outcome: SQL>INSERT INTO books VALUES ('ADV112', 'Adventures of Tom

【OCP题库-12c】最新CUUG OCP 071考试题库(71题)

71.(32-18) choose three Which three statements indicate the end of a transaction? (Choose three.) A) after a CREATE statement is issued B) after a SELECT statement is issued C) after a ROLLBACK is issued D) after a SAVEPOINT is issued E) after a COMM

【OCP-12c】2019年CUUG OCP 071考试题库(74题)

74.View the exhibit and examine the structure of ORDERS and CUSTOMERS tables. ORDERS Name     Null?       Type ORDER_ID  NOT NULL  NUMBER(4) ORDER_DATE  NOT NULL   DATE ORDER_MODE   VARCHAR2(8) CUSTOMER_ID NOT NULL  NUMBER(6) ORDER_TOTAL   NUMBER(8,

【Oracle 12c】CUUG OCP认证071考试原题解析(30)

30.choose the best answer Examine the commands used to create DEPARTMENT_DETAILS and COURSE_DETAILS: SQL> CREATE TABLE DEPARTMENT_DETAILS (DEPARTMENT_ID NUMBER PRIMARY KEY, DEPARTMENT_NAME VARCHAR2(50) , HOD VARCHAR2(50)); SQL> CREATE TABLE COURSE_D

【Oracle 12c】CUUG OCP认证071考试原题解析(32)

32.choose the best answer View the Exhibit and examine the data in EMP and DEPT tables. In the DEPT table, DEPTNO is the PRIMARY KEY. In the EMP table, EMPNO is the PRIMARY KEY and DEPTNO is the FOREIGN KEY referencing the DEPTNO column in the DEPT t