dbTalk Databases Forums  

Simple database design question

comp.databases.theory comp.databases.theory


Discuss Simple database design question in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #71  
Old   
paul c
 
Posts: n/a

Default Re: Simple database design question - 09-30-2008 , 05:08 PM






marks (AT) alienmuppet (DOT) com wrote:
....
Quote:
Sorry, I have missed out some important information:

PHONE:
phone_id (PK)

SIM:
sim_id (PK)

RELATION:
phone_id
sim_id

unique index on phone_id, sim_id

So now I've got a couple of primary keys as well as the compound
index..

PMFJI, but don't you mean two unique indexes for RELATION, one on
phone_id and one on sim_id? (I gather that the typical sql dbms
doesn't support candidate keys, so one must use physical features if one
wants to minimize the number of tables.)


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.