当前位置: hcjggs-> 071题库
165
164

新闻中心

  • 【第41题】2019年OCP认证071考试题库大全2019-06-03
  • 071题库汇总-第41题、choose two View the Exhibit and examine the structure of the ORDERS table. The columns ORDER_MODE and ORDER_TOTAL have the default values 'direct' and 0 respectively. Which two INSERT statements are valid? (Choose two.) A) INSERT INTO (SELECT order_id,order_date,customer_id FROM orders) VALUES (1,'09-mar-2007', 101);.....详情
  • 【第42题】2019年OCP认证071考试题库大全2019-06-03
  • 近两年来,OCP的考试题库频率变化,不断的增加新考题,071考试就是其中一个,给很多考071的考生造成困扰,对此,我们专门整理了OCP考试里关于071考试的原题,并带上答案,分享给大家。--------------------------------------------071题库汇总-第42题、choose threeWhich three tasks can be performed by DDL statements?A) preventing data retrieval from a table outside of office hoursB) modifying a table to prevent da........详情
  • 【第43题】2019年OCP认证071考试题库大全2019-06-03
  • 071题库汇总-第43题、choose the best answer: Which statement is true about the Oracle SQL, DELETE and TRUNCATE statements? A) DELETE but not TRUNCATE statement can be used to remove data from selective columns and rows of a table. B) DELETE and TRUNCATE statements can have a rollback done to restore data into a table. C) DELETE and TRUNCATE statements remove all indexes for the tables on which........详情
  • 【第44题】2019年OCP认证071考试题库大全2019-06-03
  • 071题库汇总-第44题、choose all that apply View the Exhibit and examine the details of the ORDER_ITEMS table. Evaluate the following SQL statements: Statement 1: SELECT MAX(unit_price*quantity) "Maximum Order" FROM order_items; Statement 2: SELECT MAX(unit_price*quantity) "Maximum Order" FROM order_items GROUP BY order_id; Which statements are true regarding the output of these SQL sta........详情
  • 【第45题】2019年OCP认证071考试题库大全2019-06-03
  • 071题库汇总-第45题、choose the best answer: View the Exhibit and examine the data in the EMPLOYEES table. You want to generate a report showing the total compensation paid to each employee to date(迄今为止支付给每位员工的总补偿). You issue the following query: SQLSELECT ename ||' joined on '|| hiredate || ', the total compensation paid is '|| TO_CHAR(ROUND(ROUND(SYSDATE-hiredate)/365) * s........详情
  • 【第46题】2019年OCP认证071考试题库大全2019-06-03
  • 071题库汇总-第46题、choose two: Examine the data in the CUST_NAME column of the CUSTOMERS table. CUST_NAME ---------------------- Lex De Haan Renske Ladwig Jose Manuel Urman Jason Mallin You want to extract only those customer names that have three names and display the * symbol in place of the first name as follows: CUST_NAME ----------------------- *** De Haan **** Manuel Urman Wh........详情
  • 【第47题】2019年OCP认证071考试题库大全2019-06-03
  • 071题库汇总-第47题、choose two You need to calculate the number of days from 1st January 2007 till date. Dates are stored in the default format of dd-mon-rr. Which two SQL statements would give the required output? A) SELECT TO_DATE (SYSDATE, 'DD/MONTH/YYYY') - '01/JANUARY/2007' FROM DUAL; B) SELECT SYSDATE - TO_DATE ('01/JANUARY/2007') FROM DUAL; C) SELECT SYSDATE -'01-JAN-2007' FROM DUAL;........详情
  • 【第48题】2019年OCP认证071考试题库大全2019-06-03
  • 071题库汇总-第48题、choose the best answer View the Exhibit and examine the description for the PRODUCTS and SALES table. PROD_ID is a primary key in the PRODUCTS table and foreign key in the SALES table with ON DELETE CASCADE option. The SALES table contains data for the last three years. You want to remove all the rows from the PRODUCTS table for which no sale was done for the last three ye........详情
  • 【第49题】2019年OCP认证071考试题库大全2019-06-03
  • 071题库汇总-第49题、choose the best answer Examine the structure of the SHIPMENTS table: You want to generate a report that displays the PO_ID and the penalty amount to be paid(罚款数额) if the SHIPMENT_DATE is later than one month from the PO_DATE. The penalty is $20 per day. Evaluate the following two queries: SQL SELECT po_id, CASE WHEN MONTHS_BETWEEN (shipment_date,po_date)1 THEN TO_C........详情
  • 【第50题】2019年OCP认证071考试题库大全2019-06-03
  • 071题库汇总-第50题、choose two Examine the structure of the MARKS table: Which two statements would execute successfully? A) SELECT SUM(subjectl+subject2+subject3) FROM marks WHERE student_name IS NULL; B) SELECT SUM(DISTINCT NVL(subject1,0)), MAX(subjectl) FROM marks WHERE subjectl subject2;.....详情
  • 【第37题】2019年OCP认证071考试题库大全2019-05-27
  • 071题库汇总-第37题、choose the best answer The PRODUCTS table has the following structure: Evaluate the following two SQL statements: SQLSELECT prod_id, NVL2(prod_expiry_date, prod_expiry_date + 15,'') FROM products; SQLSELECT prod_id, NVL(prod_expiry_date, prod_expiry_date + 15) FROM products; Which statement is true regarding the outcome? A) Both the statements execute and give differ........详情
  • 【第38题】2019年OCP认证071考试题库大全2019-05-27
  • 071题库汇总-第38题、choose two View the Exhibit and examine the structure of ORDER_ITEMS and ORDERS tables. You need to remove from the ORDER_ITEMS table those rows that have an order status of 0 or 1 in the ORDERS table. Which two DELETE statements are valid? (Choose two.) A) DELETE FROM order_items WHERE order_id IN (SELECT order_id FROM orders WHERE order_status in (0,1)); .....详情
  • 【第39题】2019年OCP认证071考试题库大全2019-05-27
  • 071题库汇总-第39题、choose two Which two statements are true regarding views? (Choose two.) A) A simple view in which column aliases have been used cannot be updated. B) The OR REPLACE option is used to change the definition of an existing view without dropping and re-creating it. C) The WITH CHECK OPTION constraint can be used in a view definition to restrict the columns displayed through th........详情
  • 【第40题】2019年OCP认证071考试题库大全2019-05-27
  • 071题库汇总-第40题、choose two Which two statements are true regarding views? (Choose two.) A) A simple view in which column aliases have been used cannot be updated. B) The OR REPLACE option is used to change the definition of an existing view without dropping and re-creating it. C) The WITH CHECK OPTION constraint can be used in a view definition to restrict the columns displayed through th........详情
  • 【第31题】2019年OCP认证071考试题库大全2019-05-27
  • 071题库汇总-第31题、choose the best answer: Examine the structure of the EMPLOYEES table: There is a parent/child relationship between EMPLOYEE_ID and MANAGER_ID. You want to display the name, joining date, and manager for all the employees. Newly hired employees are yet to be assigned a department or a manager. For them, 'No Manager' should be displayed in the MANAGER column. Which SQL qu........详情
  • 【第32题】2019年OCP认证071考试题库大全2019-05-27
  • 071题库汇总-第32题、choose the best answer: Examine the structure of the BOOKS_TRANSACTIONS table. You want to update this table such that BOOK_ID is set to 'INVALID' for all rows where no MEMBER_ID has been entered. Examine this partial SQL statement: SQL UPDATE books_transactions SET book_id = 'INVALID' WHERE............... Which condition must be used in the WHERE clause to perform th........详情
  • 【第33题】2019年OCP认证071考试题库大全2019-05-27
  • 071题库汇总-第33题、choose two: Examine the data in the CUSTOMERS table: You want to list all cities that have more than one customer along with the customer details. Evaluate the following query: SQLSELECT c1.custname, c1.city FROM Customers c1__________Customers c2 ON (c1.city=c2.city AND c1.custnamec2.custname); Which two JOIN options can be used in the blank in the above query to give ........详情
  • 【第34题】2019年OCP认证071考试题库大全2019-05-27
  • 071题库汇总-第34题、choose two Which two statements are true regarding operators used with subqueries? (Choose two.) A) =ANY and =ALL operators have the same functionality. E) The NOT IN operator is equivalent to is NULL. C) The D) The NOT operator can be used with IN, ANY and ALL operators. E) The IN operator cannot be used in single-row subqueries......详情
  • 【第35题】2019年OCP认证071考试题库大全2019-05-27
  • 071题库汇总-第35题、choose the best answer: View the Exhibit and examine the structure of the ORDERS table. Which UPDATE statement is valid? A) UPDATE orders SET order_date = '12-mar-2007' AND order_total = TO_NUMBER(NULL) WHERE order_id = 2455;.....详情
  • 【第36题】2019年OCP认证071考试题库大全2019-05-27
  • 071题库汇总-第36题、choose the best answer Examine the structure of the MEMBERS table: You want to display details of all members who reside in states starting with the letter A followed by exactly one character. Which SQL statement must you execute? A. SELECT * FROM MEMBERS WHERE state LIKE 'A%’; B. SELECT * FROM MEMBERS WHERE state LIKE 'A_%’; C. SELECT * FROM MEMBERS WHERE state LIKE '........详情