|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
asp可以使用微软的activeX使得网页功能无比强大,不过安全性也较差,而且是基于的windows服务器,所以性能稳定性也一般asp+|编程
自己事情单元是一家橡塑产物打造企业,05年2月单元向导请求我开辟一个临盆流程数据查对表,用来考核流程数据的正确性,其报表基础道理以下:
后续工序昔日正品数+后续工序昔日成品数=本工序昔日正品数+本工序昔日保存数-本工序昨日保存数
懂得了道理后即刻完工,第一次思索用一时表:
selectdistinctLEFT(productid,4)+00asproductidinto#productidfromyuancaiFlow_view
whereproductiondate=2004-3-1
andproductidlike01____
go
selecta.productid,
b.productname,
isnull(hj.GoodQty,0)ashj_good,
isnull(hjtoday.qty,0)ashj_today,
isnull(hjyesterday.qty,0)hj_yesterday,
isnull(hj.GoodQty,0)-isnull(hjtoday.qty,0)+isnull(hjyesterday.qty,0)-isnull(sx.GoodQty,0)-isnull(sx.BadQty,0)ashj_difference,
isnull(sx.GoodQty,0)assx_good,
isnull(sx.BadQty,0)assx_bad,
isnull(sxtoday.qty,0)assx_today,
isnull(sxyesterday.qty,0)sx_yesterday,
isnull(sx.GoodQty,0)-isnull(sxtoday.qty,0)+isnull(sxyesterday.qty,0)-isnull(jt.GoodQty,0)-isnull(jt.BadQty,0)assx_difference,
isnull(jt.GoodQty,0)asjt_good,
isnull(jt.BadQty,0)asjt_bad,
isnull(jttoday.qty,0)asjt_today,
isnull(jtyesterday.qty,0)jt_yesterday,
isnull(jt.GoodQty,0)-isnull(jttoday.qty,0)+isnull(jtyesterday.qty,0)-isnull(ph.GoodQty,0)-isnull(ph.BadQty,0)asjt_difference,
isnull(ph.GoodQty,0)asph_good,
isnull(ph.BadQty,0)asph_bad,
isnull(phtoday.qty,0)asph_today,
isnull(phyesterday.qty,0)ph_yesterday,
isnull(ph.GoodQty,0)-isnull(phtoday.qty,0)+isnull(phyesterday.qty,0)-isnull(zj.GoodQty,0)-isnull(zj.BadQty,0)asph_difference,
isnull(zj.GoodQty,0)aszj_good,
isnull(zj.BadQty,0)aszj_bad
from#productidasa,
finishedproductasb,
yuancaiFlow_viewashj,
basflowsubsistenceashjtoday,
basflowsubsistenceashjyesterday,
yuancaiFlow_viewassx,
basflowsubsistenceassxtoday,
basflowsubsistenceassxyesterday,
yuancaiFlow_viewasjt,
basflowsubsistenceasjttoday,
basflowsubsistenceasjtyesterday,
yuancaiFlow_viewasph,
basflowsubsistenceasphtoday,
basflowsubsistenceasphyesterday,
yuancaiFlow_viewaszj
wherea.productid=b.productid
--hj
andhj.productiondate=2004-3-1
andleft(a.productid,4)*=left(hj.productid,4)
andhj.productidlike____06
andleft(a.productid,4)+06*=hjtoday.productid
andhjtoday.checkdate=2004-3-1
andleft(a.productid,4)+06*=hjyesterday.productid
andhjyesterday.checkdate=2004-2-29
--sx
andsx.productiondate=2004-3-1
andleft(a.productid,4)*=left(sx.productid,4)
andsx.productidlike____08
andleft(a.productid,4)+08*=sxtoday.productid
andsxtoday.checkdate=2004-3-1
andleft(a.productid,4)+08*=sxyesterday.productid
andsxyesterday.checkdate=2004-2-29
--jt
andjt.productiondate=2004-3-1
andleft(a.productid,4)*=left(jt.productid,4)
andjt.productidlike____07
andleft(a.productid,4)+07*=jttoday.productid
andjttoday.checkdate=2004-3-1
andleft(a.productid,4)+07*=jtyesterday.productid
andjtyesterday.checkdate=2004-2-29
--ph
andph.productiondate=2004-</p>Access是一种桌面数据库,只适合数据量少的应用,在处理少量数据和单机访问的数据库时是很好的,效率也很高。但是它的同时访问客户端不能多于4个。access数据库有一定的极限,如果数据达到100M左右,很容易造成服务器iis假死,或者消耗掉服务器的内存导致服务器崩溃。 |
|