Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 How should I setup this table(s)?
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

81 Posts

Posted - 07/02/2010 :  11:50:33  Show Profile  Reply with Quote
I need to display data about all of our sales reps onto a webpage. The problem is, we have thousands of sales reps located in a bunch of different locations and many of these locations contain different data about their reps.

For example, Branch 1 may contain a sales rep's personal phone number and their "Branch ID". Branch 2 doesn't contain personal phone number's or BranchID's. Instead of BranchID, they group their reps by what they call "Territory ID's".

So basically, I need to build some tables to create a centralized location of all rep data. Some of the fields would be obvious such as RepID, Rep First Name, Rep Last Name, etc. But how do I build the table so that branch 1 rep records also contain their "Branch ID", Branch 2 reps contain their "Territory ID", etc? There's roughly about 100 different variable categories like these across all of our sales reps & branches.

Any idea how to setup these variable fields into a clean, organized fashion?


Aged Yak Warrior

596 Posts

Posted - 07/02/2010 :  16:43:00  Show Profile  Reply with Quote
This may or may not work:


BranchIdentificationNumber (nullable)
TerritoryID (nullable)


Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000