求一sql语句的写法
客户表 customer
cid name
1 南京审计学院
2 南京化工职业技术学院
3 浙江交通职业技术学院
4 浙江金融职业学院
5 江西省财政厅
参加活动的客户 partcustomer
id cid pid
1 2 1
2 2 2
3 4 1
4 5 3
5 5 3
6 4 4
活动表 plan
pid name cost
1 层客户宴请 4000
2 分区常规制作费 7000
3 客户拜访活动 900
4 客户沟通会&nb
相关问答:
执行的顺序:
1)文件浏览框(选择文件使用)
选择好文件后
点击一个导入按钮的时候 ,把上面上传框里的csv文件以一个ID为文件名,上传到**/**文件夹下
2)读取这个文件夹下的csv的文件,转换成sql
3 ......
表
id bh
1 10
2 11
3 12
4 15
5 16
6 22
7 25
8 26
9 27
10 28
将bh按连续分段出来返回字符串:
10~12,15~16,22,25~28
SQL code:
declare @t tabl ......
tab1 字段:billdate,goodsid,incount,inmoney,outcount,outmoney,endprice,endcount,endamt
tab2 字段:goodsid,goodskind(商品类型)
tab3 字段:goodskind(商品类型),kindname
结果:
得到商品类型在一段时间 ......
哪位仁兄有功能完整可用的SQL下载地址呢,我有一个地址,但是安装后功能不完整无法使用(没有服务器)我知道的地址是
http://down.xlylw.com/downlist/s_66_1.html
看来,你只能到网上自己搜索了!
自己动手就可 ......
第一句:
select ht.gfdm,gfdm.gfmc,gfdm.lb ,sum(jh.htdj*jh.htsl)as je
from ht left join gfdm on ht.gfdm=gfdm.gfdm
join jh on ht.htbh=jh.hth
and ht.htbh not like'del%' and ht. ......