现在是:有2个表:tables tablebook
Set EF = New ADODB.Recordset
Set oRs = New ADODB.Recordset
sCmd = "Select * from Tables" & sWhere & " Order By TableName "
sPD = EF.Fields("TableName") 'TableName从1-20号, ......
表
工单号 时间 处理的城市
需要以如下格式统计数据
长沙 湘潭 株洲 衡阳 郴州 常德 益阳 娄底 邵阳 岳阳 自治州 张家界 怀化 永州 全省
1月
2月
3月
4月
5月
6月 ......
以下是我写的SQL语句,速度慢,问题出在下划线这个条件,大家有办法给我解决吗?
select distinct a.str_bill_no, c1.str_staffname as n_dostaff ,
c.str_staffname, d.str_crm_name, e.str_crm_dir, a.n_crm_id, a.n_sellman_id,
e.str_dir_name, sum(b.d_money * -1) as totalMoney,
sum((b. ......
原数据
商品 原价 打折方式1 折扣1 打折方式2 折扣2
笔记本 10000 NULL 0 NULL 0
电视机 2000 促销 ......
select a.StuSn,a.StuName,a.StuClass,b.总分,c.主观分,d.客观分,e.*,f.* from(
(。。。。。。。) as a
left join
(。。。。。。。) as b
on a ......
一table,开始和结束时间
start_time || end_time
8:30 || 12:00
12:30 || 17:00
17:30 || 22:30
12:00--12:30,17:00--17:30 这是休息时间;
另外一个表记录时间
curtime ......