添加组SQL:如何我可以通过SQL在aspx.vb
select SE.shipperId, SUM(SEDetail.totalSize) as CBM from SE, SEDetail
where SEDetail.shipperId=10011 and SE.id = SEDetail.bolId and SEDetail.containerId
between 1 and 5 group by SE.shipperID
我不得不改变和aspx.vb这项工作:
SELECT SE.shipperID as 'Shipper ID', SUM(SEDetail.totalSize) as CBM
FROM SE inner join SEDetail on SE.id = SEDetail.bolId and SEDetail.containerId
between 1 and 5 Where
但我有错误,当我添加group by
在SQL:
SELECT SE.shipperID as 'Shipper ID', SUM(SEDetail.totalSize) as CBM
FROM SE inner join SEDetail on SE.id = SEDetail.bolId and SEDetail.containerId
between 1 and 5 Where group by SE.shipperID
如何使用,在一个SQL?
删除从哪里哪里,你应该通过 – Satya 2013-04-23 12:09:03