0
我有一个查询,我想依赖于Excel表中的某些参数,但我得到的错误'参数不允许在查询中不允许以图形方式显示' 。解决这个问题的唯一方法就是使用视图,但是会产生多少额外的开销?这意味着加入两张表(一张近70000张,一张记录超过200000张,两张大约40张),可能只使用总共80个字段中的5个左右。我们没有测试服务器。或者,是否有办法将以下查询更改为Microsoft查询确实允许参数的查询?从一个复杂的查询获取数据到excel
select count(distinct a) from table1 where b=0 and c < '2010-01-01' and a in
(select a from table2 where d between '2010-01-01' and '2010-12-31')
或作为联接:
select count(distinct table1.a) from table1 inner join table2 on (table1.a=table2.a
and table2.d between '2010-01-01' and '2010-12-31') where table1.c < '2010-01-01'
and table1.b=0
我想替换cellvalues日期(c和d)。
感谢,
恩斯特
我没有想过,我不认为这是一个选项。其他人也必须添加东西。尽管如果sql可以每隔一小时或在保存时自动从excel表导入,它可能是一个选项。我想我会在正常工作时间后首先尝试查看选项。 – Ernst 2010-11-30 07:18:45