单选题 View the Exhibit and examine the structure of the ORDER_ITEMS table.
Examine the following SQL statement:SELECT order_id, product_id, unit_price FROM order_itemsWHERE unit_price = (SELECT MAX(unit_price) FROM order_items GROUP BY order_id);You want to display the PRODUCT_ID of the product that has the highest UNIT_PRICE per ORDER_ID) What Answer: ion should be made in the above SQL statement to achieve this?
相关试题
单选题 Examine the description of the EMPLOYEES table:Nane Null Type----------------------------------------------------------EMP_ID NOT NUL NUMBEREMP_NAME VARCHAR2 (40)DEPT_ID NUMBER(2)SALARY NUMBER(8,2)JOIN_DATE DATEWhich query is valid?
单选题 Examine this query:SELECT 2 FROM dual d1 CROSS JOIN dual d2 CROSS JOIN dual d3; What is returned upon execution?
单选题 The EMPLOYEES table contains columns EMP_ID of data type NUMBER and HIRE_DATE OF DATA TYPE DATE.You want to display the date of the first Monday after the completion of six months since hiring.The NLS_TERRITORY parameter is set to AMERICA in the session and, therefore, Sunday is the first day of the week.Which query can be used?
单选题 Examine the description of the PRODUCT_INFORMATION table: NAME NULL? Type----------------------- ------------------- ------------------------ PROD_ID NOT NULL NUMBER (2) PROD_NAME VARCHAR2 (10)LIST_PRICE NUMBER (6, 2)Which query retrieves the number of products with a null list price?
单选题 Examine the description of the SALES1 table:
SALES2 is a table with the same description as SALES1. Some sales data is duplicated in both tables.You want to display the rows from the SALES1 which are not present in the SALES2 table: Which set operator generates the required output?
单选题 Examine this query:SELECT TRUNC (ROUND (156.00,-2),-1) FROM DUAL;What is the result?
单选题 Examine the description of the CUSTMERS table:
You want to display details of all customers who reside in cities starting with the letter D followed by at least two characters.Which query can be used?
单选题 Examine the description of the EMPLOYEES table:
NLS_DATE_FORMAT is set to DD-MON-YY.Which query requires explicit data type conversion?