Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Poor Design?

Author  Topic 

MikeB
Constraint Violating Yak Guru

387 Posts

Posted - 2003-03-12 : 10:02:19
I was just talking with my customer about his requirements for a budgeting report he would like. He indicated that his team only needs 3 quotes MAX on any given project. He says that the report should only show 3 quotes and it should look similar to this:

Project | Activity | Budget | Quote1 | Quote2 | Quote3 | Awarded To | Variance

Now to me, this a many to one relationship between the project and the quotes. This should require 2 tables if the number of quotes is variant.

Table One
Reference | Project | Activity | Budget | Awarded To

Table 2
Reference | TableOne.Reference | Quote

But, because he claims there will under any circumstance be no more then 5 quotes and the report will still only require the "Low" three, would it be in bad design taste to combine the 2 tables into one:

Table
Reference | Project | Activity | Budget | Quote1 | Quote2 | .... Quote 10 | Awarded To

Let's say I put 10 Quote fields in there "just in case" and when the report is printed, only select the bottom 3?

Advice?

Mike B



robvolk
Most Valuable Yak

15732 Posts

Posted - 2003-03-12 : 10:20:16
No, you should go with the two table design. That way you can add as many quotes as you want without needing to change the design later. No point in adding columns to a table when more than half of them will never be filled.

Go to Top of Page

MikeB
Constraint Violating Yak Guru

387 Posts

Posted - 2003-03-12 : 10:36:59
Yeah, I guess I knew that. A 'good rule of thumb' is a 'good rule of thumb' no matter how many excuses I have. :) hehe

Mike B

Go to Top of Page
   

- Advertisement -