Re: Make-table (?Materialized views?) of complicated cross tabs, calculated field



On Aug 26, 11:00 am, Rich P <rpng...@xxxxxxx> wrote:
Hi Jon,

Here are a couple of things to think about with Access - it is a file
based relational database system.  Right there - that implies not heavy
duty.  Datawarehousing is heavy duty - for server RDBMS like sql server..
Proof:  the errors you are getting in Access.

If you have 50,000 records or less and are having problems querying
these records - as you have mentioned - time to reconstruct your
application.  If you have 50,000 to 100,000 records - you should still
be able to run fairly sophisticated queries in Access.  After about
200,000 - 300,000+ records is where I start having problems with Access
and will migrate everything to sql server/.Net.

If you have small data - 50,000 records or less - need to rewrite your
queries.  If you have big data - need to migrate to big data
environment.

Rich

*** Sent via Developersdexhttp://www.developersdex.com***

Yeah, yeah, I know I know. :)

We're only talking a few thousand records. And it's a yearly survey
that I just need to "do", not "do right". So, I'm completely kludge-
ing it.

The problem is I'm compiling about 10 fields of "1-5" rank responses
back into a single table by having a separate query for each question,
and then doing a union to give me the list I should have had the
responses stored in in the first place.
THEN, I do the crosstab on that Union.
THEN, I do a GROUP BY query that crunches some numbers on the crosstab
to get percents and year to year comparisons of previous surveys.
THEN, I do pivots and charts on that aggregate data.

:)

So, by the end, I've got about 5 or 6 levels of nested queries and
conditional calculated fields (to get my percents right).

I've tried to rewrite the queries by setting my WHERE Criteria at each
level, and none of them improve. I've tried doing my "counts" so I
can calculate my averages by doing dcount lookups and by doing GROUP
BY tables with count aggregates. They're all dog slow - because they
have to go off that union to get the totals for each question.

If I manually make-table the Union and Crosstab queries, it takes a
few thumb twiddling, but sufferable minutes for the admin (me), and
then the subsequent forms and charts run great for my users.

Again, the time on this project isn't to make it "right". It's to
make it "work". Since I only update survey responses once a week, and
since that update has to be manually done anyway, I consider it an
acceptable solution (i.e. A Complete F'in Kludge!). LOL

It's either some sort of Make Table or alternative method, or I do
what's been done in the past and manually export all of this into
Excel and just link people to that static file.

Again, basic question is this - Should I use make-table, which will
drop and create the table. Or, should I use some sort of delete/
insert combo? Or is there something similar to an Oracle
"materialized view" in Access I've never heard of?

Jon
.



Relevant Pages

  • Re: crosstab union???
    ... but remember that Union queries require that all queries they are ... As long as you can control your crosstab ... > Is it possible to UNION 2 crosstab queries together? ...
    (microsoft.public.access.queries)
  • Re: Forms and Queries
    ... But it sounds like reading about crosstab ... queries might help you out. ... > Yes, No or N/A responses. ... The query will not summarize the data the way I would like. ...
    (microsoft.public.access.formscoding)
  • Re: crosstab union???
    ... the UNION before the crosstab. ... "George Nicholson" wrote: ... but remember that Union queries require that all queries they are ... As long as you can control your crosstab ...
    (microsoft.public.access.queries)
  • Re: Combining records from two queries
    ... combining UNION and SELECT queries to best effect. ... Using my query names, can you say exactly what my SQL should be ... > my Union Queries short and simple and do the rest of the work elsewhere. ... >>> Subject and Professional Mentors that are allocated to placements. ...
    (microsoft.public.access.queries)
  • Re: Question about Queries with Subqueries
    ... performance reasons to use UNION ALL instead of UNION. ... i have a query i am working on that draws data from 3 different data ... i have a question about queries like this. ... to try "flattening" my queries by using subqueries. ...
    (microsoft.public.access.queries)