添加組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