任何人都可以帮助我进行数据库查询,以将从 Sql Server 2008 获取/选择的数据显示到 c# 桌面应用程序中。我已附上所需的表格图和数据网格视图,请尽快回答。我需要在gridview中显示的是:
- 仓库编号
- 仓库名称
- 类型名称
- 计数名称
- 包
- 每袋磅
- 总磅
图表:
任何人都可以帮助我进行数据库查询,以将从 Sql Server 2008 获取/选择的数据显示到 c# 桌面应用程序中。我已附上所需的表格图和数据网格视图,请尽快回答。我需要在gridview中显示的是:
图表:
我得到了答案:
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