Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Questionaire Design
Message
De
14/09/1998 12:59:01
 
 
À
14/09/1998 12:52:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00136265
Message ID:
00136270
Vues:
28
Hi Garry ----

You'd want a master test table and a child table with one record for every question in a test. You'd also want a master client record with a child record for every response. That child record would also contain foreign keys linked to the test questions (test child) and master test.

IE:

CREATE TABLE mastertest (mtkey C(10),mtname C(40))
CREATE TABLE mtquestion (mtqkey C(10), mtkey C(10), quest C(50), correct N(1))
CREATE TABLE client (clikey C(10), cname C(50))
CREATE TABLE cresponse (clikey C(10),mtkey C(10), mtqkey C(10), answer N(1))

This is assuming that it's a multiple choice type of questionnaire. Any more questions?


>Does anyone know what would be a good database design for a questionaire application. It just needs to identify the information for a client and the answers to the questions asked, or if you can't suggest a good design, coul you tell me where I might find a book giving an example of how to program a questionaire in Visual FoxPro.
>
>Thanks in advance
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform