select pdrq,gz,
sum(实际数量),sum(实际数量-损溢)
from str_pd_com 
表结构如下
实际数量 损溢
3     1
2     0
1     1pdrq,gz,是什么呢?