当前位置:网站首页>SQL | 计算总和
SQL | 计算总和
2022-06-11 01:23:00 【孤天野鹤】
select order_num, sum((item_price * quantity)) total_price from OrderItems
group by order_num
having total_price >= 1000
order by order_num注意产品有重复的,要加sum()函数。
边栏推荐
猜你喜欢

QT widget's simple serial port assistant (qserialport)
![[penetration test tool bee] how to install and use the XSS penetration test tool bee?](/img/c4/7fbb0bff07b548af81165b22002661.jpg)
[penetration test tool bee] how to install and use the XSS penetration test tool bee?

Fb02 edit coding block field

FB02编辑Coding Block字段

Go develop web

环糊精金属有机骨架(β-CD-MOF)装载二巯丁二酸/大黄素/槲皮素/三氯蔗糖/二氟尼柳/奥美拉唑(OME)

技术分享| 快对讲,全球对讲

浅析直播间海量聊天消息的架构设计难点

金属有机骨架材料Fe-MIL-53,Mg-MOF-74,Ti-KUMOF-1,Fe-MIL-100,Fe-MIL-101)负载异氟醚/甲氨蝶呤/阿霉素(DOX)/紫杉醇/布洛芬/喜树碱

Contest2902 - following Tang Kelian's programming: sequence structure question d: area 201502 question f: persistence of supporting college students in Ludian earthquake
随机推荐
npm ERR Fix the upstream dependency conflict, or retry
ME11/ME12采购信息记录及条件记录创建及更新BAPI:ME_INFORECORD_MAINTAIN_MULTI
常见漏洞的防御措施整理
优化调度(火电、风能、储能)【matlab代码实现】
【无标题】
[C language] storage of data in memory -1 plastic
378. 有序矩阵中第 K 小的元素
[untitled]
Introduction for i-Teams
如何保障数仓数据质量?
QT widget's simple serial port assistant (qserialport)
Introduction and practice of QT tcp/udp network protocol (II) UDP communication
CRS-5017
During SSH configuration key login, you need to pay attention to whether the private key is set with a password
Battery control of QT widget (qpainter)
SAP smartforms page feed printing automatic judgment
14:00面试,14:08就出来了 ,问的实在是太...
Shader of double sided material
大厂测试员年薪30万到月薪8K,吐槽工资太低,反被网友群嘲?
The largest kth element in the array
https://www.nowcoder.com/practice/d8a624021183454586da94d280cc8046?tpId=298&tqId=2374683&ru=/exam/oj&qru=/ta/sql-teach-yourself/question-ranking&sourceUrl=%2Fexam%2Foj%3Fpage%3D1%26tab%3DSQL%25E7%25AF%2587%26topicId%3D298