單項(xiàng)選擇題

下面查詢?cè)趫?zhí)行時(shí)發(fā)生錯(cuò)誤,這個(gè)錯(cuò)誤的原因是什么()

A.一個(gè)別名不能使用在表達(dá)式中
B.一個(gè)別名NAME沒有一個(gè)隔開的雙引號(hào)
C.MIDPOINT+100是錯(cuò)誤的因?yàn)镃UST_CREDIT_LIMIT包含了NULL值
D.為CUST_CREDIT_LIMIT/2表達(dá)式取一個(gè)別名MIDPOINT應(yīng)用雙引號(hào)隔開


您可能感興趣的試卷

你可能感興趣的試題

2.單項(xiàng)選擇題你需要為每個(gè)客戶的信息額度增加$1000。在輸出時(shí),客戶的lastname列頭應(yīng)為()

A.SELECT.cust_last_name.Name,cust_credit_limit+1000"New.Credit.Limit"FROM.customers
B.SELECT.cust_last_name.ASName,cust_credit_limit+1000AS.New.Credit.Limit.FROM.customers
C.SELECT.cust_last_name.AS"Name",cust_credit_limit+1000AS"New.Credit.Limit"FROM.customers
D.SELECT.INITCAP(cust_last_name)"Name",cust_credit_limit+1000INITCAP("NEWCREDITLIMIT")FROM.customers

3.單項(xiàng)選擇題

查看promotion(促銷表),每個(gè)促銷周期為7天。你的經(jīng)理要你生成一個(gè)報(bào)表,提供每周的促銷成本()

A.SELECT.promo_name,promo_cost/promo_end_date-promo_begin_date/7FROMpromotions
B.SELECT.promo_name,(promo_cost/promo_end_date-promo_begin_date)/7FROMpromotions
C.SELECT.promo_name,promo_cost/(promo_end_date-promo_begin_date/7)FROMpromotions
D.SELECT.promo_name,promo_cost/((promo_end_date-promo_begin_date)/7)FROMpromotions

4.單項(xiàng)選擇題在表emp里,計(jì)算員工的年薪SAL*12并生成別名AnnualSalary的是()

A.SELECT.ename,sal*12,Annual.Salary.FROM.emp
B.SELECT.ename,sal*12"Annual.Salary"FROM.emp
C.SELECT.ename,sal*12AS.Annual.Salary.FROM.emp
D.SELECT.ename,sql*12AS.INICTAP("AnnualSalary")FROM.emp

5.多項(xiàng)選擇題下列關(guān)于ORACLE的to_date函數(shù)和to_char函數(shù),描述正確的是()

A.to_char函數(shù)是將字符串?dāng)?shù)據(jù)轉(zhuǎn)換為日期數(shù)據(jù)
B.to_date函數(shù)是將字符串?dāng)?shù)據(jù)轉(zhuǎn)換為日期數(shù)據(jù)
C.to_char函數(shù)是將日期數(shù)據(jù)轉(zhuǎn)換為字符數(shù)據(jù)
D.to_date函數(shù)是將日期數(shù)據(jù)轉(zhuǎn)換為字符數(shù)據(jù)