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...
...but when right-click on line joining 2 tables , choose "edit relationship..." dialog shows one-to-one:
Comments
Post a Comment