求一SQL - MS-SQL Server / 基础类
tab1 字段:billdate,goodsid,incount,inmoney,outcount,outmoney,endprice,endcount,endamt
tab2 字段:goodsid,goodskind(商品类型)
tab3 字段:goodskind(商品类型),kindname
结果:
得到商品类型在一段时间内的期初金额,本期入库金额,本期出库金额,本期结存。
kindname,beginmoney,insummoney,outsummoney,endsummoney
具体最好有点数据来说明一下,否则搞不清你的期初数据如何生成
SELECT a.kindname,………………………………
from tab3 a
LEFT OUTER JOIN tab2 b ON a.goodskind=b.goodskind
LEFT OUTER JOIN tab1 c ON b.goodsid=c.goodsid
字段说明?
看起来很简单,但是楼主没把问题说清楚,回答不了,只能up了...
没看明白
End_rbody_63326684//-->
该回复于2010-02-07 20:54:26被管理员删除
对我有用[0]
丢个板砖[0]
引用
举报
管理
TOP
happyandsad
(秋天落叶)
等 级:
#6楼 得分:0回复于:2010-02-08 10:04:39
说的不明白
你还是给数据然后告诉说要得到啥数据来的直接点
相关问答:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......
请问一下,外网两台SQLSERVER实例数据传输,有没有采用数据压缩和加密。压缩比是多少,加密是什么加密算法?相关文档哪里可以找到?谢谢
我也想知道!关注此贴!
关注~~
数据库大牛都哪去了啊?
......
--drop table #T1
--drop table #T2
create Table #T1(ID int,
QueryID nvarchar(20),
ResultID1 nvarchar(20),
ResultID2 nvarchar(20))
create Table #T2(SortNo int,
QueryID nvarchar(20),
ResultID1 nv ......
从数据库中查询一张表的数据
select 部门,姓名 from tb
如何才能生成下面的xml格式
XML code:
<folder state="unchecked" label="全部">
<folder state="unchecked&qu ......
我们C#做一个窗体 往数据库里插入数据
SqlConnection cn = new SqlConnection("Data Source=20090713-1752\\SQLEXPRESS;Initial Catalog=goods;Integrated Security=True");
......