|
  
- UID
- 19289
- 帖子
- 612
- 精华
- 10
- 积分
- 388
- 人气值
- 14 点
- 努力值
- 2053 点
- 推广注册人数
- 0 个人
- 阅读权限
- 100
- 在线时间
- 1325 小时
- 注册时间
- 2007-1-11
- 最后登录
- 2008-10-29
![处女座[08月23-09月22] 处女座[08月23-09月22]](images/common/medal/220054291410.jpg) 
|
6楼
发表于 2007-12-12 08:37
| 只看该作者
By Batch and Location
select g.warehouse as Warehouse, Isnull(g.facode,'<empty>') as Batch, g.warehouse_location as Location, sum(g.aantal) as Quantity from gbkmut g, items i where g.transtype in ('X','N', 'C', 'P') and (i.itemcode = '057370000' or i.itemcode = '0057370000') and (g.artcode = '057370000' or g.artcode = '0057370000') and g.reknr= i.glaccountdistribution group by g.warehouse, g.facode, g.warehouse_location having sum(aantal) <> 0 order by g.warehouse, g.facode, g.warehouse_location
select g.warehouse as Warehouse, Isnull(g.facode,'<empty>') as Batch, g.warehouse_location as Location, sum(g.aantal) as Quantity
from gbkmut g, items i
where g.transtype in ('X','N', 'C', 'P')
and (i.itemcode = '057370000' or i.itemcode = '0057370000')
and (g.artcode = '057370000' or g.artcode = '0057370000')
and g.reknr= i.glaccountdistribution
group by g.warehouse, g.facode, g.warehouse_location
having sum(aantal) <> 0
order by g.warehouse, g.facode, g.warehouse_location
[ 本帖最后由 kedefu2002 于 2007-12-12 08:39 编辑 ] |
WIN
WIN
WIN......
MSN: kedefu2002@yahoo.com.cn
Exact ERP: http://www.erp100.com/forum-338-1.html
Blog: http://kedefu2002.erp100.com |
|