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
相关问答:
最近我通过学习,感觉自己学的还可以了,想做一网站,但是一直都找不到题材,不知道做什么,希望各位给我点意见,如果有需求文档就更好了!希望大家给我点意见,谢谢! 先做个企业网站吧,我感觉一个人做网站不适宜 ......
我帮学校做了一个站. 在校园网的情况下,能够登陆成功,后台帐号都能通过,进入后台 但是在外网AD的情况下,能够登陆后台的页面,页面是ASP文件. 但是输入帐号和密码的时候,网页运行很久都 ......
请各位高手帮解决,急!!! <script language="JavaScript" type="text/javascript"> function CheckInput(){ if (document.frm.loginname.length =0){ alert('请正 ......
<% Sql="select top 8 * from NewsData where d_classid in (select classid from NewsClass where ParentID=16)" Rs.Open Sql, conn, 1,1 Do Until Rs.Eof
......
我找了一个伪静态代码,如下: index.asp <!--#include file="config.asp"--> <ol> <% Set rs=server.CreateObject("adodb.recordset") & ......