Re: How To Avoid Cartesian Products?
- From: "nimajneb via AccessMonster.com" <u42477@uwe>
- Date: Mon, 31 Mar 2008 18:58:16 GMT
Thanks, George!
I'll be taking your first suggestion, by process of elimination. The second
seems impractical given the number of records in each table, and the third is
something I will consider for the next time I refactor the database.
I will also be looking for ways to include the fire and auto queries you
mentioned as subqueries, rather than independently saved queries. I find it
clutters my database to have all these separate saved queries lying around.
George Nicholson wrote:
Several approaches. Here are some:
Create 2 queries (Fire and Auto) to give you a one-record monthly sum per
agent. Left Join those queries to your Agents table.
Alternatively, Create a Union Query that combines the Auto and Fire Info
(adding a Policy Type field), and join that to Agents.
Alternatively, Combine Auto and Fire into one NB table (which they probably
should have been from the start). Since you say they contain the same
fields, you probably would only need to add one additional field for
PolicyType (i.e., Fire, Auto). On a similar note, I question whether NB
really belongs in a separate table from Existing business. NB/Existing
sounds more like an data Attribute to me than data of a different type.
Hello! This is my first post on to Access Monster. I have a specific[quoted text clipped - 34 lines]
question with general implications. I've simplified it, since the real
The question: Is there an easy way around this? I've done so by using
subqueries for now, but they are unbearably slow.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-queries/200803/1
.
- References:
- How To Avoid Cartesian Products?
- From: nimajneb
- Re: How To Avoid Cartesian Products?
- From: George Nicholson
- How To Avoid Cartesian Products?
- Prev by Date: Re: Error message on Where statement
- Next by Date: Re: Timestamp query
- Previous by thread: Re: How To Avoid Cartesian Products?
- Next by thread: Including a variable in an Append (Insert) query
- Index(es):
Relevant Pages
|