database - One to One relationship modeling -


i using access 2010 this.

i have created 2 tables , 1 one , don't seem in 1 one relationship.

create table person( id varchar(1) unique, name varchar(30),  primary key (id) );  create table passport( id varchar(1) unique, country varchar(30), primary key (id), foreign key (id) references person(id) ); 

from little knowledge have, should 1 one relationship 1 many. how 1 one via access?

i have tried things can find in books no success.

please help.

you may misled way relationships displayed in relationships window. ran exact ddl , when view relationship in relationships window looks one-to-many...

gui.png

...but when right-click on line joining 2 tables , choose "edit relationship..." dialog shows one-to-one:

details.png


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -