🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.databases
Article #132

Re: HELP: Interesting Design Problem!?

#132
From: John Douglas
Date: Thu, 21 May 1998 00:00
56 lines
3436 bytes
Quite simple - each QQ stores info as to differential AA.
Some QQ will have no alternative paths for any AA
Some will have may be x2 paths - for Yes, No
Others will have xN paths for xM AA - some AA will NOT have an
alternative path.

Thus the main survey instrument will be composed of many QQ, each QQ
may have many AA, each AA may have an alternative path.

The order/path/route thru the survey instrument will be stored with
each QQ, if there are no alternative paths depending on the AA, or as
a default path for an AA with no alternative path.  

All this will allow the process to be dynamic, moving from QQ to QQ,
depending on the AA.

You can do this with a number of tables, or as a linked list.
NB will you have to support an undo function?

The best hierarchy I've used was
Survey - Section - QQ - AA

It won't be a simple form with SQL, but quite a bit of coding.

There are commercial products that support this!

Good luck

On Thu, 21 May 1998 12:38:02 -0400, "Joshua Lippiner"
<jlippiner@iname.com> wrote:

>To anyone who can figure this out;
>
>I have an interesting problem.  I am trying to create a SQL database that
>will be used for online surveys.  To do this, I will be creating a separate
>table with the survey (online form) definitions such as name, value and
>type.  This dB will be read and made into an online form.  That part is
>background and fairly trivial.
>
>Here's the problem;
>I want to add something called a skip ruled.  What this will do is ask
>different questions based on different responses to a specific question.
>Example:  If you are male than which of these deodorants to you use.  The
>choices would be different if the person was female.  The problem is that I
>want all of the skip rules to be defined in the database somehow.  Meaning I
>want my form creator to be able to read my SQL table and know which
>questions to ask next if this response is given.
>
>Does anyone have any idea how I should go about setting up this system?  I
>know I can have a table with the survey structure but dont know how to
>reference in the skip rule to specific responses.  Thanks for the help.
>please reply directly to jlippiner@iname.com
>
>Josh Lippiner
>
Technical Details
Message-ID: <356ca20b.10183165@news.dircon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6k1ljr$pmq$1@winter.news.erols.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 105c7d,8a3951f7eafce14c
X-Google-Attributes: gid105c7d,public
X-Google-Thread: 104de1,8a3951f7eafce14c
X-Google-Attributes: gid104de1,public
X-Google-Thread: 10d3ce,8a3951f7eafce14c
X-Google-Attributes: gid10d3ce,public
X-Google-Thread: fc5c9,8a3951f7eafce14c
X-Google-Attributes: gidfc5c9,public
X-Google-Thread: 1162a5,8a3951f7eafce14c
X-Google-Attributes: gid1162a5,public
X-Google-Thread: ff5a1,8a3951f7eafce14c
X-Google-Attributes: gidff5a1,public
X-Google-Thread: 10a90d,8a3951f7eafce14c
X-Google-Attributes: gid10a90d,public
From: john-d@nSoPAM.dircon.co.uk (John Douglas)
Subject: Re: HELP: Interesting Design Problem!?
Date: 1998/05/21
Message-ID: <356ca20b.10183165@news.dircon.co.uk>
X-Deja-AN: 355379838
Content-Transfer-Encoding: 7bit
References: <6k1ljr$pmq$1@winter.news.erols.com>
MIME-Version: 1.0
Reply-To: john-d@nSoPAM.dircon.co.uk
Content-Type: text/plain; charset=us-ascii
Newsgroups: alt.comp.databases,borland.public.vdbase.data.sql,borland.public.vdbase.non-technical,borland.public.vdbase.programming,comp.databases,comp.databases.ms-sqlserver,comp.databases.visual-dbase