
Pdox 5.0 questionnaire type problem
Quote:
> One of the staff who seeks my advice from time to time has just
> put and entire set of responses to a "multiguess" type questionnaire
> into Pdox 5. THe responses are only Agree, Disagree, Not Sure, Not
> Applicable.
> She has the base details of each questionnaire in the first 6 fields
> and then the 30 odd questions make up the next set of fields.
> You can run a query to ask how many women, clerical staff (say) said
> Agree to Q2.3. but if you want to know how many (of the same group)
> answered agree to 2.4 - you have to ask a new query.
What you have here is a classic case of a bad database design. Here's
what needs to happen. You need to think vertically, not horizontally,
and you need two tables. Something like this:
MASTER/PARENT TABLE
Questionairre# SmallInt
Other Stuff
DETAIL/CHILD TABLE
Questionairre# SmallInt
Question# SmallInt (values of 1 through 30)
Answer Value Alpha-1 (A=Agree, D=Disagree, etc.)
Now you can get the answers you need. If it is your job to support a
relational database you need to understand what a relational database
is. See if your local library or bookstore has a book that explains
Cobb's Rules for normalizing a relational database. Your tables should
always be what is called third or fourth normal form in Paradox.
Daniel A. Morgan