Solved

Job Costing Database Design - need help

Posted on 2011-02-18
3
483 Views
Last Modified: 2012-05-11
I am creating a fairly simple database for an engineering firm to handle their job costing and need some advise on the design.

I have a table for categories and  quotes (and others)

The issue I have is that I want to be able to create a quote that has a cost breakup by category (with the categories listed in the category table). Do I create all the category names as fields in the quote table to store the quoted price for that category, or can I look them up from the category table itself. If I create the category fields in the quote table then I am duplicating data.

Hope this makes sense.
0
Comment
Question by:TrentSlater
  • 2
3 Comments
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 34931085
At the very least, you will need something like this (and could well need more)...


tblCustomers
-----------------------------------------------
CustID (PK)
CustName
<others>

tblQuotes
-----------------------------------------------
QuoteID (PK)
CustID (FK)
QuoteDescr

tblCategories
-----------------------------------------------
CategoryID (PK)
CategoryName

tblQuotesCostByCategory
-----------------------------------------------
QuotesCostByCatID (PK)
QuoteID (FK)                     <------ also have unique index on QuoteID + CategoryID
CategoryID (FK)
Amount
0
 

Author Comment

by:TrentSlater
ID: 34931100
Thanks for the quick response - i am testing this now with the extra quotes table
0
 

Author Comment

by:TrentSlater
ID: 34931151
Works!. Thanks. Easiest 500 points you've ever made.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question