Re: Query problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I'm assuming this means that one rule can be used for multiple questions,
and that your data looks like this:

QID, RID, Response
1, 1, Truck
1, 2, Boat
2, 1, Truck
2, 2, RV
3, 1, Truck
3, 2, Motorcycle

Then I would Group By RID & Response to find those with a Count(QID) equal
to the total count of questions. From there, you would use all that info to
query for the QID & RID that make the cut.

I'd do it in about 3 queries or so..

--
Steve Clark, Access MVP
http://www.fmsinc.com/consulting
*FREE* Access Tips: http://www.fmsinc.com/free/tips.html

"mscertified" <rupert@xxxxxxxxxxxxx> wrote in message
news:719846A9-9905-4B48-8949-15B5AA5A4163@xxxxxxxxxxxxxxxx
> With the following table structure:
>
> RuleID
> QuestionID
> Response
>
> There are a fixed number of questions (currently 10) which apply to each
> rule.
>
> For each Question where all of the Responses are the same across all
> Rules,
> I need to list the rules.
> I'd like the output to be a table with 2 columns: Question and Rule
>
> Can anyone think of an efficient way to do it?
>
> -David


.



Relevant Pages

  • Re: Aborting form entry
    ... That really was a most gracious response. ... not replied before but an overloaded lorry, or truck, as you may prefer to ... or commit will do the trick. ...
    (microsoft.public.access.forms)
  • Montoya Crash UCAP
    ... I have worked with the driver of Fire 2 ... Truck 2 and several times we saw crashes in front of us and were down on the ... Our primary function is to provide medical care to the driver ... for our rapid response and I wished him good luck next year. ...
    (rec.autos.sport.nascar.moderated)
  • Re: OT: Re: Additional info on funds reductions for NO flood projects
    ... > any need to truck into NO, it would have been evacutated, block by ... > The response was minimal, ... as it turned out, the catastrophe was greater than every other catastrophe, ... > higher tolerance for the suffering of others than most. ...
    (alt.support.diabetes)
  • Re: Still Waiting for Sill
    ... out all of the information about our speed, the condition of our truck ... and trailer, the weather, the road, etc. ... Janet Wilder ... I enjoyed your response as well - ...
    (rec.outdoors.rv-travel)
  • Re: Ping kasl33
    ... rid this idiot from the group. ... The group has tried just about every method to rid him but he just keeps ... You being a truck driver would laugh at some of the antics he's described ... Dave Ruff haven't you got anything better to do than to SHIT all over this ...
    (misc.transport.trucking)