3

任何人都可以帮助我进行数据库查询,以将从 Sql Server 2008 获取/选择的数据显示到 c# 桌面应用程序中。我已附上所需的表格图和数据网格视图,请尽快回答。我需要在gridview中显示的是:

  1. 仓库编号
  2. 仓库名称
  3. 类型名称
  4. 计数名称
  5. 每袋磅
  6. 总磅

图表: 在此处输入图像描述

在此处输入图像描述

4

1 回答 1

0

我得到了答案:

select 
    g.godown_id, g.godown_name, t.type_name, b.count, r.bags_received,
    b.lb_per_bag, s.supplier_name
from
    tbl_yarn_book b, tbl_godown g, tbl_godown_transaction gt, 
    tbl_yarn_receive r, tbl_yarn_supplier s, tbl_yarn_type t                        
where
    gt.godown_id = g.godown_id 
    and gt.receive_id = r.receive_id
    and r.book_id = b.book_id 
    and b.type_id = t.type_id 
    and b.supplier_id = s.supplier_id
于 2012-08-11T13:29:53.413 回答