I have inherited a database from Access (with a VB front End) that has some critical design floors it looks much like this. Its aim is to send out quotes and then arrange collections I have re-solved soime issues with a few tables but this one I am struggling with. I have used SQL 2008 Access tool to convert the database to SQL to start re-writing to improve the performance.
As you can see if the same company has a different branch a new entry is made in the Customer Table if someone new joins the same company at the same branch again a new entry is made.
QAddy column means that if active the collection is to be made at the Q Address 1 and not Address 1.
I know I obviously need to normalise this database but this table contains over 3000 records that I need to merge into the different Tables any ideas how best to redesign this
CUSTOMERS TABLE
ID Company Name Address 1 Address2 County QA Q Contact Q Address1
1 Red Cars Roger Doger Red House Red St Essex 0 Null Null
2 Green Cabs Billy Bullhat Green House Old St London 1 John Boy 44 Egg Rd
5 Blue Carts Peter Perfect Mint House One St Dorset 0 Null Null
6 Blue Carts Ltd Joe Bloggs Mint House One St Dorset 1 Sol Perfect Hull House
8 Blue Carts 1 Peter Perfect ME7 House Long St Kent 0 Null Null
9 Blue Carts 2 Gorden Green SE1 Park Comb Rd London 0 Null Null
As you can see if the same company has a different branch a new entry is made in the Customer Table if someone new joins the same company at the same branch again a new entry is made.
QAddy column means that if active the collection is to be made at the Q Address 1 and not Address 1.
I know I obviously need to normalise this database but this table contains over 3000 records that I need to merge into the different Tables any ideas how best to redesign this
CUSTOMERS TABLE
ID Company Name Address 1 Address2 County QA Q Contact Q Address1
1 Red Cars Roger Doger Red House Red St Essex 0 Null Null
2 Green Cabs Billy Bullhat Green House Old St London 1 John Boy 44 Egg Rd
5 Blue Carts Peter Perfect Mint House One St Dorset 0 Null Null
6 Blue Carts Ltd Joe Bloggs Mint House One St Dorset 1 Sol Perfect Hull House
8 Blue Carts 1 Peter Perfect ME7 House Long St Kent 0 Null Null
9 Blue Carts 2 Gorden Green SE1 Park Comb Rd London 0 Null Null