Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: SQL Server
Expertise: Beginner
Nov 16, 1999

Multiple Linking to a Table

Question:
I have a main table where there are three fields: UserID, Postal code main, Postal code sub. I have a second table where there are two fields: Postal code, description.

I want to create a new table with these two tables. This new table will have three fields, like the main table, but the fields containing the postal code will be replaced by their descriptions (via the second table). Will this work?

Answer:
This is a good idea. They seem compatible to me (not knowing about the structure of newtable.postalcode), but it seems like you will be collecting the parts and simply including the description.

There will be join issues (using the table twice for master and detail) with this design (having the master and detail collapsed into one table) but I've found this to be a useful approach to minimizing the number of tables and localizing code maintenance.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap