OCP-051-006
发表于:2026-11-01 作者:千家信息网编辑
千家信息网最后更新 2026年11月01日,6. Examine the structure of the SHIPMENTS table:检查表SHIPMENTS 的结构name Null TypePO_ID NOT NULL NUMBER(
千家信息网最后更新 2026年11月01日OCP-051-0066. Examine the structure of the SHIPMENTS table:
检查表SHIPMENTS 的结构
name Null Type
PO_ID NOT NULL NUMBER(3)
PO_DATE NOT NULL DATE
SHIPMENT_DATE NOT NULL DATE
SHIPMENT_MODE VARCHAR2(30)
SHIPMENT_COST NUMBER(8,2)
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_DTAE. The penalty is $20 per day.Evaluate the following two queries:
你想生成一个显示po_id和罚款金额的报表, 如果SHIPMENT_DATE 晚于PO_DTAE一个月,那么将会产生罚款,罚款金额为每天$20.
SQL> SELECT po_id, CASE
WHEN MONTHS_BETWEEN (shipment_date,po_date)>1 THEN
TO_CHAR((shipment_date - po_date) * 20) ELSE 'No Penalty' END PENALTY FROM shipments;
SQL>SELECT po_id, DECODE (MONTHS_BETWEEN (po_date,shipment_date)>1, TO_CHAR((shipment_date - po_date) * 20), 'No Penalty') PENALTY FROM shipments;
Which statement is true regarding the above commands?
A. Both execute successfully and give correct results.
B. Only the first query executes successfully but gives a wrong result.
C. Only the first query executes successfully and gives the correct result.
D. Only the second query executes successfully but gives a wrong result.
E. Only the second query executes successfully and gives the correct result.
检查表SHIPMENTS 的结构
name Null Type
PO_ID NOT NULL NUMBER(3)
PO_DATE NOT NULL DATE
SHIPMENT_DATE NOT NULL DATE
SHIPMENT_MODE VARCHAR2(30)
SHIPMENT_COST NUMBER(8,2)
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_DTAE. The penalty is $20 per day.Evaluate the following two queries:
你想生成一个显示po_id和罚款金额的报表, 如果SHIPMENT_DATE 晚于PO_DTAE一个月,那么将会产生罚款,罚款金额为每天$20.
SQL> SELECT po_id, CASE
WHEN MONTHS_BETWEEN (shipment_date,po_date)>1 THEN
TO_CHAR((shipment_date - po_date) * 20) ELSE 'No Penalty' END PENALTY FROM shipments;
SQL>SELECT po_id, DECODE (MONTHS_BETWEEN (po_date,shipment_date)>1, TO_CHAR((shipment_date - po_date) * 20), 'No Penalty') PENALTY FROM shipments;
Which statement is true regarding the above commands?
A. Both execute successfully and give correct results.
B. Only the first query executes successfully but gives a wrong result.
C. Only the first query executes successfully and gives the correct result.
D. Only the second query executes successfully but gives a wrong result.
E. Only the second query executes successfully and gives the correct result.
金额
报表
结构
检查
生成
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
小米移动互联网科技园
广州紫鲸互联网科技有限公司
科技和互联网公司
上海挚品互联网科技
杭州互联网科技公司
互联网科技ppt模板
互联网科技博客
一五八零互联网科技
美国互联网前沿科技
福州新华互联网科技学校 知乎
小米互联网科技园设置
洛阳共同富裕互联网科技有限公司
美国互联网科技实力
南通创西澳互联网科技有限公司
互联网公司高科技产品
下一代互联网重大应用科技园
科技互联网行业投资研究
同城互联网络科技
第三届互联网大会安防黑科技
互联网科技创新方面的资料
互联网科技缩写
互联网科技博客
上海电发互联网科技有限公司
互联网金融中的现代科技
为客找房互联网科技公司怎么样
互联网科技快讯热点
卡尔迅互联网科技有限公司
唯美互联网科技
互联网科技创业有什么好项目
小牛互联网科技有限公司地址