Hi there,
It's been many years since I first created a database from scratch so I was looking for a quick refresher.
I have one large transaction table with the following fields:
Transaction Date
Sales invoice number
Transaction Details
Product Type
Customer Reference
Customer Name
Customer Address
Customer Phone
Product Code
Unit Cost
Selling Price
Quantity
Sales Area
Sales Rep Forename
Sales Rep Surname
Sales Rep Phone Number
So to simplify this table through normalisation, would I do the following:
Main table
Customer Reference *
Sales Invoice Number *
Sales Rep ID *
Tables branched off this
tblCustomer
1) Customer Reference *
Customer Name
Customer Address
Customer Phone
tblSalesInvoice
2) Sales Invoice Number *
Transaction Date
Transaction Details
Product Code (linked to table 4)
Quantity
Sales Invoice Total
Sales Invoice Profit
tblSalesRep
3) Sales Rep ID
Sales area
Sales Rep Forename
Sales Rep Surname
Sales Rep phone number
tblProduct
4) Product ID
Product Type
Unit Cost
Selling price
Profit per unit
Am I on the right lines? It doesn't look right to me so any help would be excellent.
Thanks for your time
It's been many years since I first created a database from scratch so I was looking for a quick refresher.
I have one large transaction table with the following fields:
Transaction Date
Sales invoice number
Transaction Details
Product Type
Customer Reference
Customer Name
Customer Address
Customer Phone
Product Code
Unit Cost
Selling Price
Quantity
Sales Area
Sales Rep Forename
Sales Rep Surname
Sales Rep Phone Number
So to simplify this table through normalisation, would I do the following:
Main table
Customer Reference *
Sales Invoice Number *
Sales Rep ID *
Tables branched off this
tblCustomer
1) Customer Reference *
Customer Name
Customer Address
Customer Phone
tblSalesInvoice
2) Sales Invoice Number *
Transaction Date
Transaction Details
Product Code (linked to table 4)
Quantity
Sales Invoice Total
Sales Invoice Profit
tblSalesRep
3) Sales Rep ID
Sales area
Sales Rep Forename
Sales Rep Surname
Sales Rep phone number
tblProduct
4) Product ID
Product Type
Unit Cost
Selling price
Profit per unit
Am I on the right lines? It doesn't look right to me so any help would be excellent.
Thanks for your time