473,404 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Help with Normalisation of tables!!!

Hi I am having trouble trying to normalise my tables, I would really appreciate some help! So far I have:

Customer Table
CustId(pk)
Cust Name
Cust Address
Cust Postcode
Cust Email

Order Table
OrderID (pk)
Order Date_Time
CustID(fk)

OrderDetails
DetailsID(pk)
Quantity
OrderNo(fk)
DeliveryID(fk)

Product
ProductID(pk)
ProductType
ProductDescription
DetailsID(fk)
PartID(fk)
Price
VatID(fk)

Part
PartID(pk)
PartName
PartDescription
SupplierID(fk)

Vat Table
VatID(pk)
VatRate

Inventory
InventoryID(pk)
Inventory Quantity
PartID(fk)

Supplier
SupplierID(pk)
Supplier Name
Supplier Address
Supplier PostCode
Supplier TelNo
Supplier VatNo

Delivery Table
DeliveryID(pk)
DeliveryDate

Help would be gratefully appreciated!
Feb 12 '11 #1
1 1617
Stewart Ross
2,545 Expert Mod 2GB
Other than your delivery table - which is not needed at all - what you've listed looks OK. A delivery date is an attribute of something else, most probably of the order line itself.

We'd really need to know which tables are related 1-to-many to give a fully informed answer, or more simply have access to an entity-relationship diagram (ERD) for your database, but what you've got makes sense for purchase ordering at present.

As we cannot really assist you other than in the most general of terms without doing the work for you, and purchase ordering is not a trivial application, I'd instead suggest that you read our Insights article on Database Normalisation and Table Structures which provides useful background on normalisation if you don't have such background already.

-Stewart

ps Whilst this really isn't a comment on normalisation, it would be prudent to add to your order details table additional attributes, and in particular the item price and the VAT payable. Although these can be derived through relationships to the VAT and product tables, what you need to store is the price at date of order, and the VAT at the date of order. Without this storage of actual values in the order line table the computed totals for the price of an existing order will be incorrect if the VAT rate changes or an item unit price is changed.
Feb 12 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Carlos Marangon | last post by:
Hello! I need some help with tables in MySQL. I am making a colums of articles in my site. It has 3 posters that post articles. I make a little serach page to search for words into articles. ...
0
by: Campbell's List | last post by:
Hi, I'm completely new to MySql and need help importing tables from Access or Dbase. I am using Dreamweaver MX to create a data-driven web site. With the VPS hosting plan we're on, our remote...
5
by: Ciar?n | last post by:
I have about 7 tables I need to join, but am having a lot of difficulty with the joins, that I need some help on. I'll provide the details of four tables to illustrate the scenario. I have one...
4
by: Matt Stanley | last post by:
I am trying to build a page that scales to fit the browser window regardless of size or resolution. The navigation on the top of the page is framed in dark red/brown using CSS with a background...
13
by: Aladdin | last post by:
I have an MS Access form on which I have a listbox listing tables in that database. I want to be able to click on any of those tables and view its contents on the same form using subforms or any...
1
by: beva | last post by:
I have a rather simple system programmed where I have a large table format that was used to create a form for the user to enter new records into the table. Most of the processing is coded in vba for...
3
by: Shawn Northrop | last post by:
I just built a website and am having some trouble setting the height of a table cell. the site is www.say-something.org The problem i am having is the top left cell (with the logo) is not...
2
by: Abe amer | last post by:
Dear All I'm a phd student. and I'm doing now a medicine research. I need your help in : if I want to have a visual basic 2005 table (for example an Access table) that is connected to a program....
1
by: Neekos | last post by:
Hey guys, So after some of you (FishVal, Nico, NeoPa) pointed out previously that my tables are not normalized, i've decided to go back to the drawing board, but im not really sure where to start....
21
by: Beauford | last post by:
Hi All, I really need some help with tables, each time I do a site I find myself wasting hours and hours on end, and this time is no different. I am into hour 10 trying to get this to work. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.