1. 程式人生 > >OCP-1Z0-051 第52題 列別名

OCP-1Z0-051 第52題 列別名

View the Exhibit and examine the structure of the PRODUCTS table.

Using the PRODUCTS table, you issue the following query to generate the names, current list price,and discounted list price for all those products whose list price falls below $10 after a discount of 25% is applied on it.
SQL>SELECT prod_name, prod_list_price,
           prod_list_price - (prod_list_price * .25) "DISCOUNTED_PRICE"
FROM products
WHERE discounted_price < 10;
The query generates an error.What is the reason for the error?
A. The parenthesis should be added to enclose the entire expression.
B. The double quotation marks should be removed from the column alias.
C. The column alias should be replaced with the expression in the WHERE clause.
D. The column alias should be put in uppercase and enclosed with in double quotation marks in the WHERE clause.

答案:C

相關推薦

OCP-1Z0-051 52 別名

View the Exhibit and examine the structure of the PRODUCTS table. Using the PRODUCTS table, you issue the following query to generate the names, current li

OCP-1Z0-051 64 order by使用別名注意事項

View the Exhibit and examine the data in the PROMO_CATEGORY and PROMO_COST columns of the PROMOTIONS table.         Evaluate the following two queries: SQ

OCP-1Z0-051 57 別名和null值判斷

Name                     Null               Type CUST_ID                 NOT NULL         NUMBER CUST_FIRST_NAME         NOT NULL         VARCHAR2(20) CUST

OCP-1Z0-051 15 別名的用法

一、原題 View the Exhibit and examine the data in the CUSTOMERS table.Evaluate the following query:SQL> SELECT cust_name AS "NAME", cust_c

OCP-1Z0-051 174 事務的組成

Which statement is true regarding transactions? (Choose all that apply.) A. A transaction can consist only of a set of DML and DDL statements.B. A part or

OCP-1Z0-051 51 SYNONYM同義詞

Which statement is true regarding synonyms? A. Synonyms can be created only for a table. B. Synonyms are used to reference only those tables that are owned

OCP-1Z0-051 54

View the Exhibit and examine the structure of the CUSTOMERS table. Evaluate the query statement: SQL> SELECT cust_last_name, cust_city, cust_credit_limi

OCP-1Z0-051 2 檢視的WITH CHECK OPTION選項

SQL>  CREATE VIEW v4  2  AS SELECT prod_id, cust_id, SUM(quantity_sold) FROM SALES  3  WHERE time_id <= SYSDATE - 2*365  4  GROUP BY prod_id, cust_id

OCP-1Z0-051 45 SEQUENCE(序列)的注意事項

Which two statements are true about sequences created in a single instance database? (Choose two.) A. The numbers generated by a sequence can be used only

OCP-1Z0-051 37 drop table

一、原題 You issued the following command to drop the PRODUCTS table: SQL> DROP TABLE products; What is the implication of this command? (

OCP-1Z0-051 43 序列的cycle選項

Evaluate the following CREATE SEQUENCE statement: CREATE SEQUENCE seq1 START WITH 100 INCREMENT BY 10 MAXVALUE 200 CYCLE NOCACHE; The SEQ1 sequence has gen

OCP-1Z0-051 62 where萬用字元

     EMPNO ENAME ---------- ----------       7876 ADAMS       7499 ALLEN       7698 BLAKE       7782 CLARK       7902 FORD       7900 JAMES       7566 JO

OCP-1Z0-051 172 事務savepoint的注意事項

The SQL statements executed in a user session are as follows:SQL> CREATE TABLE product                  (pcode NUMBER(2),                   pname VARCHA

OCP-1Z0-051 46 約束和索引

Which statements are correct regarding indexes? (Choose all that apply.)A. When a table is dropped, the corresponding indexes are automatically dropped.B.

OCP-1Z0-051 142 巢狀子查詢的應用

View the Exhibit and examine the structure of the PRODUCTS table. Evaluate the following query:SQL> SELECT prod_name        FROM products       WHERE pr

OCP-1Z0-051 131 LEFT OUTER JOIN和RIGHT OUTER JOIN的用法

View the Exhibit and examine the structure of the PRODUCT, COMPONENT, and PDT_COMP tables. In PRODUCT table, PDTNO is the primary key. In COMPONENT table,

OCP-1Z0-051 149 子查詢中ALL的應用

View the Exhibits and examine the structures of the COSTS and PROMOTIONS tables. Evaluate the following SQL statement:SQL>SELECT prod_id       FROM cost

OCP-1Z0-051 113 GROUP BY, TO_CHAR的應用

Examine the structure of the ORDERS table:Name                Null                Type ORDER_ID           NOT NULL           NUMBER(12) ORDER_DATE        

OCP-1Z0-051 1 CTAS語句建表注意事項

一、 原題 View the Exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS, and TIMES tables.The PROD_ID column is the foreign ke

OCP-1Z0-051 47 索引

View the Exhibit and examine the structure of ORD and ORD_ITEMS tables. The ORD_NO column is PRIMARY KEY in the ORD table and the ORD_NO and ITEM_NO column