Hey,
I've made a survey 'tool' where people can create surveys. All is working fine but I just wanted to check for my own sake what the best/better way is.
I'll keep it simple. The tables:
Survey. Defines a survey.
Sections. Splits in a survey.
Pages. Page breaks in a section. (sections can be a number of pages)
Question blocks. Blocks of questions. Grouping.
Questions. Individual question.
Now I could relate all those with a 1:m between them like:
http://www.dbforums.com/attachment.p...1&d=1226537332
Or I could have a bunch of FK's right through the table like:
http://www.dbforums.com/attachment.p...1&d=1226537403
I currently have it as the latter, a bunch of FK's. It was done this way as I was thinking it would make selection faster but due to the nature of the survey all data relating to a survey, including related tables is selected at once.
Am I making a lick of sense? Finding this difficult to put into words
Basically I want to know if I should just remove all the extra FK's and rely on the 1st diagram or should I keep with the second as selection will be faster.
The diagrams are snippets of the real erd, tried a textual representation of what I wanted to get across and well I'm no good with words (as you may have figured by now haha)