Re: Database Structure Question ... Serious Help Only Pls
- From: Mike Gramelspacher <gramelsp@xxxxxxxx>
- Date: Mon, 28 Aug 2006 15:22:45 -0500
In article <1156789688.246004.131370@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
DrewKull@xxxxxxxxx says...
Ok ... so i have a database im building to track user feedback. TheCREATE TABLE ProblemCodes
problem im running into is we need to track "Problems" detected in the
feedback, but we have multiple inputs for feedback. So right now, we
get feedback from Surveys and Email. The problem im running into is a
neeeed to link these two input to a common "Input ID" in order to
easily track a "Problem" (each "Problem" will have an "Input ID"
showing the source of the Problem whether it was from a survey or
email). But my problem comes up with large imports that i do into the
survey table. So when i add a bunch of data (by import or copy/paste)
into the table, the Input ID is not updated because that MUST be kept
in a separate table in order to link both inputs. Does that make
sense? So how do i do this?!?! Here's a "diagram" of my tables:
Survey:
- Input ID (FK from Input)
- Date, etc.
- Input ID (FK from Input)
- Date, etc.
Input
- Input ID (PK,AutoNumber)
- Type
Problem
- Input ID (FK from Input)
So the problem is when i add data to Survey or email, I dont want to
manual add data to Input then go back to Survey and input the next
AutoNumber generated ...
Does this make sense? Any ideas???
(problem_code CHAR (2) NOT NULL PRIMARY KEY,
code_name VARCHAR (250) NOT NULL);
CREATE TABLE Sources
(source_name VARCHAR (20) NOT NULL PRIMARY KEY);
CREATE TABLE Problems
(problem_id AUTOINCREMENT (1,1) NOT NULL PRIMARY KEY,
problem_code CHAR (2) NOT NULL
REFERENCES ProblemCodes (problem_code),
problem_text MEMO NOT NULL,
source_name VARCHAR (20) NOT NULL
REFERENCES Sources (source_name));
.
- References:
- Database Structure Question ... Serious Help Only Pls
- From: DrewKull
- Database Structure Question ... Serious Help Only Pls
- Prev by Date: Simple Query Question
- Next by Date: Re: Database Structure Question ... Serious Help Only Pls
- Previous by thread: Re: Database Structure Question ... Serious Help Only Pls
- Next by thread: Simple Query Question
- Index(es):
Relevant Pages
|
Loading