OCP-1Z0-051 第11题 sql运算顺序

本文讨论了一道关于OCP-1Z0-051考试中的SQL运算顺序问题。在示例中,展示了一个计算产品折扣和税费后总价的SQL查询,包含$100的运费。如果移除查询中的所有括号,根据数学原理,由于乘除运算的优先级高于加减,结果不会受到影响,选项B正确。
摘要由CSDN通过智能技术生成
一、原题
View the Exhibit and examine the structure of the PRODUCTS table.
All products have a list price.
You issue the following command to display the total price of each product after a discount of 25% and a tax of 15% are applied on it. Freight charges of $100 have to be applied to all the products.
SQL>SELECT prod_name,
          prod_list_price -(prod_list_price*(25/100)) +(prod_list_price -(prod_list_price*(25/100))*(15/100))+100
          AS "TOTAL PRICE"
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值