Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Foriegn key just cant be made in my diagram!?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I get the error message " The columns the in that 'blah' do not match an existing primary key or unique constraint"

I've checked that my table columns look the same design wise, what am I doing wrong?

all I want is a Fk in table B for the PK in Table A

Many thanks

Nit
NBC@Secretagent.co.uk
 

Uusally ,some data stored in the FK field of the Table B
refers to PK in table A that do not exist anymore.
if you execute this statement , you will se imedialtely
the wrong data

SELECT FK from B where fk NOT in ( select pk from A )

it is easier to create the link before filling the tables.

thmarmot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top