Click here to Skip to main content
15,891,905 members
Home / Discussions / Database
   

Database

 
GeneralDB Design-Going in circles Pin
hp1089-May-05 3:42
hp1089-May-05 3:42 
GeneralRe: DB Design-Going in circles Pin
Colin Angus Mackay9-May-05 4:44
Colin Angus Mackay9-May-05 4:44 
GeneralRe: DB Design-Going in circles Pin
hp1089-May-05 5:06
hp1089-May-05 5:06 
GeneralRe: DB Design-Going in circles Pin
Colin Angus Mackay9-May-05 5:13
Colin Angus Mackay9-May-05 5:13 
GeneralRe: DB Design-Going in circles Pin
hp1089-May-05 5:30
hp1089-May-05 5:30 
GeneralRe: DB Design-Going in circles Pin
Colin Angus Mackay9-May-05 5:57
Colin Angus Mackay9-May-05 5:57 
GeneralRe: DB Design-Going in circles Pin
hp1089-May-05 21:56
hp1089-May-05 21:56 
GeneralRe: DB Design-Going in circles Pin
Colin Angus Mackay9-May-05 22:47
Colin Angus Mackay9-May-05 22:47 
hp108 wrote:
Would it be better to add ... one table called "PersonCompany" with foreignkeys: PersonID and CompanyID and one field called "RelationType"

I wouldn't have that as one table with a RelationType column unless there were going to be many queries that didn't care what the relation was, just that they were related in some way. The reason for this is that these are two distinct logical relationships and the physical side should match unless there are performance problems. In otherwords, design the model as normalised as possible, then denormalise it afterwards if you find performance problems.

If you do decide to put it only one table, remember that the RelationType column is most likely to become part of the Primary Key if you can have a person that shares both types of relation with the company.


My: Blog | Photos | Next SQL Presentation
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More


GeneralRe: DB Design-Going in circles Pin
hp1089-May-05 23:57
hp1089-May-05 23:57 
GeneralRe: DB Design-Going in circles Pin
hp10810-May-05 5:47
hp10810-May-05 5:47 
GeneralRe: DB Design-Going in circles Pin
Colin Angus Mackay10-May-05 6:03
Colin Angus Mackay10-May-05 6:03 
GeneralRe: DB Design-Going in circles Pin
hp10810-May-05 6:34
hp10810-May-05 6:34 
GeneralRe: DB Design-Going in circles Pin
Colin Angus Mackay10-May-05 6:53
Colin Angus Mackay10-May-05 6:53 
GeneralRe: DB Design-Going in circles Pin
hp10810-May-05 7:24
hp10810-May-05 7:24 
GeneralRe: DB Design-Going in circles Pin
jasncab10-May-05 14:29
jasncab10-May-05 14:29 
GeneralRe: DB Design-Going in circles Pin
hp10810-May-05 23:21
hp10810-May-05 23:21 
GeneralOracle 10G Pin
Member 17906978-May-05 22:47
Member 17906978-May-05 22:47 
GeneralRe: Oracle 10G Pin
jasncab11-May-05 6:07
jasncab11-May-05 6:07 
QuestionSQL Server 2000 to Access ? Pin
WDI8-May-05 7:01
WDI8-May-05 7:01 
AnswerRe: SQL Server 2000 to Access ? Pin
Tad McClellan8-May-05 14:15
professionalTad McClellan8-May-05 14:15 
AnswerRe: SQL Server 2000 to Access ? Pin
Member 17906978-May-05 22:40
Member 17906978-May-05 22:40 
GeneralRe: SQL Server 2000 to Access ? Pin
WDI9-May-05 10:15
WDI9-May-05 10:15 
GeneralDAAB Compatibility with Oracle Database 10G Pin
Member 17906977-May-05 23:11
Member 17906977-May-05 23:11 
Generalmultiple database Pin
Anonymous7-May-05 20:51
Anonymous7-May-05 20:51 
GeneralRe: multiple database Pin
Member 17906977-May-05 23:16
Member 17906977-May-05 23:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.