Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Job Costing Database Design - need help

Posted on 2011-02-18
3
Medium Priority
?
520 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 93

Accepted Solution

by:
Patrick Matthews earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

719 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