易截截图软件、单文件、免安装、纯绿色、仅160KB

sql+asp多表查询问题???

A商品表
ma  spmc    ppbm   
 
B 品牌表
ppbm  ppmc    jyb


C销售表
xrq  ma  xsl  xje    ppbm  jyb

D进货表
jrq  ma  jsl  jje    ppbm  jyb

E期出库存表(每月一日的库存)
ma  qckc 

要把5个表的信息根据日期(jrq ,xrq)条件显示在一个表中
ma  spmc  qckc  jsl  jje    xsl    xje    (qckc+jsl-xsl)  ppbm  ppmc


小弟在此先谢谢诸位啦!!!

表B-(E,A)-(c,D)是一对多对多的关系


引用
select A.ma,A.spmc,E.qckc,jsl,xsl,xje,(qckc+jsl-xsl),ppbm,ppmc
from A inner join B on  A.ppbm = B.ppbm inner join C on A.ma = c.ma
inner join D on a.ma=d.ma inner join E on A.ma = e.ma
inner join E on A.ma = e.ma where 条件



条件这样写可以吗
"& eq("xtzl.ma", sp_m) & " and " &eq("xtzl.ppbm", pp_m) & " and " & eq("ppk.jyb", jyb_m) & " and " &dbfj & ".ma=xtzl.ma and "& dbfj &".ppbm=xtzl.ppbm and " & dbfj & ".jyb=ppk.jyb and " & dbfj & ".ppbm=ppk.ppbm and " & dbfx & ".ma=xtzl.ma and "&a


相关问答:

如何用c#,sql2000 开发c/s下的工作流?

本人c#新手 可是要求要用c# ,sql2000开发c/s的工作流,一头雾水,请大家帮忙帮忙,给点思路,说的约具体越好,我也好往那个方面去学习
http://www.hxzi.com/view/61402.html
B/S版的,基本思想应该差不多的。。 ......

asp事务问题

<%On Error Resume Next
Set conn=Server.CreateObject("ADODB.Connection")
conn.begintrans
conn.Open ("Driver={SQL Server};server=(local);uid=sa;database=student;pwd=") ......

asp文件解密

我有一个asp源码,但是出现一个文件,我用asp解密都是乱码
请教

VBScript code:
??

 %# , #&')*)-0-(0%()(?

(((((((((((((((((((((((((( ......

asp伪静态 - Web 开发 / ASP

我找了一个伪静态代码,如下:
index.asp
<!--#include file="config.asp"-->  
<ol>  
<%  
Set rs=server.CreateObject("adodb.recordset") & ......

ASP表切换显示问题

3个文字链接:A,B,C对应显示3个表格:表A,表B,表C;
表A则为默认显示,这时如果点了文字链接B则怎么显示表B,其他表则是不显示的;
请问不用框架的形式怎么解决此类问题

HTML code:

<script> ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号