If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > 1 to 1 is a fault design?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-20-04, 23:59
neiljchen neiljchen is offline
Registered User
 
Join Date: Feb 2004
Posts: 13
1 to 1 is a fault design?

Dear All,
I saw from some other web sites which say that if a database has 1 to 1 relationship, it means that it's a "sign" of bad design, might need to improve... but ... is that true???

thx,

neil
Reply With Quote
  #2 (permalink)  
Old 02-21-04, 07:42
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
no
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 02-25-04, 01:37
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
I've also often heard that if you have a 1-to-1 relationship, why not just keep things simple by sticking it all in one table...
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
  #4 (permalink)  
Old 02-25-04, 01:44
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
why not stick it in one table?

here's an example

table1
id integer
foo varchar(5)

table2
id integer
bar longtext -- or similar "large" datatype


suppose you combined these but most of your queries just needed foo, not bar

the combined rows are larger, therefore fewer of them on a physical block on disk, therefore more disk reads to scan the table, therefore slower query

or something like that
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On