Access 2007: Alternative to comma join and parameter queries -
i have queries following:
select storescasesbymonth.category, storescasesbymonth.chain, sum(storescasesbymonth.casesshipped) casesshipped storescasesbymonth, querydates storescasesbymonth.month between querydates.startdate , querydates.enddate;
querydates used lookup table specifies date range, , 1 row of 2 columns:
startdate enddate 1/1/2013 1/12/2013
the reason use table need link of these queries excel, , excel cannot when queries use parameters, otherwise first option specifying date range.
so question(s) is(/are):
a) there way rewrite sql doesn't use 'comma' join, know (rightly) looks fudge,
and b) there way of using kind of variable value across lots of queries doesn't involve parameters, know (rightly) looks fudge.
a) no, , yes does.
b) no, , yes does.
Comments
Post a Comment