單項(xiàng)選擇題

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

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


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題在表emp里,計算員工的年薪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

2.多項(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ù)

3.多項(xiàng)選擇題下面哪個SQL語句顯示1890.55as$1,890.55()

A.SELECT.TO_CHAR(1890.55,’$0G000D00’)FROMDUAL
B.SELECT.TO_CHAR(1890.55,’$9,999V99’)FROMDUAL
C.SELECT.TO_CHAR(1890.55,’$99,999D99’)FROMDUAL
D.SELECT.TO_CHAR(1890.55,’$99G999D00’)FROMDUAL
E.SELECT.TO_CHAR(1890.55,’$99G999D99’)FROMDUAL

4.單項(xiàng)選擇題關(guān)于單行函數(shù),哪一個描述是正確的()

A.他們只能接受一個參數(shù)
B.他們只能嵌套兩層
C.參數(shù)只能是字段值或常量
D.他們始終為查找表中的每個行返回一個值

5.單項(xiàng)選擇題你需要在表SALES里查找一些產(chǎn)品明細(xì),其中PROD_ID列包括字符‘_D123’,哪些WHERE子句條件能得到這些相符產(chǎn)品()

A.WHERE-prod_id.LIKE’%_D123%’ESCAPE’_’
B.WHERE-prod_id.LIKE’%\_D123%’ESCAPE’\’
C.WHERE-prod_id.LIKE’%_D123%’ESCAPE’%_’
D.WHERE-prod_id.LIKE’%\_D123%’ESCAPE’\_’