I have 3 excel documents and have imported them to SSMS. The 3 excel documents are related but does not have any "ID's" or "Product ID" and I created it manually.
The excel contains lots of data but just an example:
Excel Table 1
+----+--------------+--------------------+
| ID | Town | Address |
+----+--------------+--------------------+
| 1 | Piccadilly | 979 Church Street |
| 2 | Bloomsbury | 70 Broadway |
| 3 | Holborn | 9027 South Street |
| 4 | Southwark | 94 St. John’s Road |
| 5 | RedBridge | 4 Park Lane |
+----+--------------+--------------------+
Excel Table 2
+----+-------------+--------------------+
| ID | Town | Train_Station_Name |
+----+-------------+--------------------+
| 1 | Bromley | Station A |
| 2 | Enfield | Station B |
| 3 | Holborn | Station C |
| 4 | Bexley | Station D |
| 5 | Westminster | Station E |
+----+-------------+--------------------+
Excel Table 3
+----+---------------+-------------+
| ID | Property_Cost | Town |
+----+---------------+-------------+
| 1 | $35,000 | Piccadilly |
| 2 | $39,000 | Piccadilly |
| 3 | $31,000 | Holborn |
| 4 | $36,000 | Bexley |
| 5 | $33,000 | Piccadilly |
+----+---------------+-------------+
The problem I'm facing is that right now I want to create a new table for "Town" and if I create it, I have no idea how I should create the relationship between the 3 tables. If I put their ID's as primary key, it will mess up the data