简体   繁体   English

我如何总结表格中特定销售代表的值

[英]How do i sum up the values of a particular sales Rep in a table

This is the table这是桌子

How can I sum up all Expr for sales rep "03"我如何总结销售代表“03”的所有 Expr

When i use a calculator, The sum of "03" will be correct, and i have tried sum(number-ordered * quoted_price) But it goes ahead to add all salesrep's sales together当我使用计算器时,“03”的总和是正确的,我已经尝试过 sum(number-ordered * quoted_price) 但它继续将所有 salesrep 的销售额加在一起

Due to the limited amount of data, I will have to provide you with a minimal answer.由于数据量有限,我将不得不为您提供最低限度的答案。
Essentially what you are doing right now is that you are trying to get a sum of all of them.本质上,你现在正在做的是你试图得到所有这些的总和。

You will need to use a where condition or group by to get only data of the the rep.您将需要使用where条件或group by来仅获取代表的数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 SQL 命令行中按月汇总值? - How do I sum up values by month in SQL command line? 如何计算销售代表完成的总销售额以制作销售代表记分卡? - How to calculate total sales done by Sales Rep to make Sales Rep Score Card? 如何在不弄乱第一个表中的值总数的情况下求和合并表中的值? - How can I SUM values in a joined table without screwing up totals of values in the first table? 如何只汇总表中的唯一值 - How do I sum only the unique values in a table 如何在 SQL 的表格中找到总销售额? - How do I find total sales in my table on SQL? SQL:如何显示库存中的所有项目以及某个时间段内出售的项目的总销售额? - SQL: How do I show all Items in Inventory and Sum sales of items sold in a time period? 如何在SQL中别名特定值? - How do I alias particular values in SQL? 如何汇总单个键的每一列的总和,然后将总和分配给另一个表中的值? - How do I sum up the total value of each column for an individual key and then assign the total to a value in a different table? 如何对 sql 中的数据 output 进行代表? - How do I had a rep to data output in sql? 如何根据条件对一个表中多行的值求和,并将求和值插入到 mysql 中的不同表中? - How do i sum up value from multiple rows from one table base on a condition and insert the sum up value to different table in mysql?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM