dbTalk Databases Forums  

Circular relationship problem

comp.databases.theory comp.databases.theory


Discuss Circular relationship problem in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Arash
 
Posts: n/a

Default Circular relationship problem - 10-30-2007 , 03:21 PM






Hi all,
I know it is an old issue and probably boring but please cope with
me , it is a real world problem I am facing and I don't really like
circular relationship.

First table is Test, each test has many questions. On the other hand
each test has many Responses. So far so fine, but here is the problem:
I have another table for the answers: Each question has many answers
AND each Response also has many answers .

So there is s circular relationship between these tables which is
bizarre. Could you give me some hints to solve it?

Regards,
Arash


Reply With Quote
  #2  
Old   
mAsterdam
 
Posts: n/a

Default Re: Circular relationship problem - 10-30-2007 , 04:06 PM






Arash wrote:

Quote:
I know it is an old issue and probably boring but please cope with
me , it is a real world problem I am facing and I don't really like
circular relationship.
Why not? Is there something inherently wrong with that?

Quote:
First table is Test, each test has many questions. On the other hand
each test has many Responses. So far so fine, but here is the problem:
I have another table for the answers: Each question has many answers
AND each Response also has many answers .

So there is s circular relationship between these tables which is
bizarre. Could you give me some hints to solve it?
What is the meaning and use of your data?

Can you give a realistic population sample?


Reply With Quote
  #3  
Old   
Arash
 
Posts: n/a

Default Re: Circular relationship problem - 10-31-2007 , 08:29 AM



On Oct 30, 5:06 pm, mAsterdam <mAster... (AT) vrijdag (DOT) org> wrote:
Quote:
Arash wrote:
I know it is an old issue and probably boring but please cope with
me , it is a real world problem I am facing and I don't really like
circular relationship.

Why not? Is there something inherently wrong with that?
Well in this case for example, there is two path to determine the
"test" for a answer ( query by using the response and query by using
the question), and there is not guaranty that both would be the same
Quote:
First table is Test, each test has many questions. On the other hand
each test has many Responses. So far so fine, but here is the problem:
I have another table for the answers: Each question has many answers
AND each Response also has many answers .

So there is s circular relationship between these tables which is
bizarre. Could you give me some hints to solve it?

What is the meaning and use of your data?

Can you give a realistic population sample?
It would be like:
test: id=1 name="Mathematic test",
questions id=1 description= "1+1", test_id=1
id=2,description ="2+2" , test_id=1
Response: id=1, username: "Adams" test_id =1
Answer: id=1, question_id=1, response_id=1, answer_text="2"
id=2, question_id=2, response_id=1, answer_text="4"





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.